Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Aug 10, 2023

GCC4.8 seems to not be happy about us wanting to implicitly construct a std::pair<string, BoundValueParameter> from a std::pair<string, Value> even though this constructor exists:

	explicit BoundParameterData(Value val) : value(std::move(val)), return_type(value.type()) {
	}

We now explicitly construct the pair, hopefully making GCC4.8 happy

This was the (seemingly innocuous) diff:

-		for (idx_t i = 0; i < bind_values.size(); i++) {
-			prepared_planner.parameter_data.emplace_back(bind_values[i]);
+		for (auto &pair : bind_values) {
+			prepared_planner.parameter_data.emplace(pair);

(they used to be vectors, and are now maps)

@hannes hannes merged commit 5cf634e into duckdb:master Aug 11, 2023
carlopi added a commit to carlopi/duckdb that referenced this pull request Aug 14, 2023
carlopi added a commit to carlopi/duckdb that referenced this pull request Aug 15, 2023
carlopi added a commit to carlopi/duckdb that referenced this pull request Aug 15, 2023
hannes added a commit that referenced this pull request Aug 16, 2023
Fix gcc weird behaviour around template deduction (#8533)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants