|
20 | 20 | namespace node { |
21 | 21 | namespace sqlite { |
22 | 22 |
|
| 23 | +using std::in_place_type; |
23 | 24 | using v8::Array; |
24 | 25 | using v8::ArrayBuffer; |
25 | 26 | using v8::BackingStoreInitializationMode; |
@@ -3598,7 +3599,6 @@ struct bind_value { |
3598 | 3599 | }; |
3599 | 3600 |
|
3600 | 3601 | literal FromColumn(sqlite3* db, sqlite3_stmt* stmt, int col_index) { |
3601 | | - using std::in_place_type; |
3602 | 3602 | int type = sqlite3_column_type(stmt, col_index); |
3603 | 3603 | switch (type) { |
3604 | 3604 | case SQLITE_NULL: |
@@ -3702,7 +3702,6 @@ struct to_v8_value { |
3702 | 3702 | }; |
3703 | 3703 |
|
3704 | 3704 | Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) { |
3705 | | - using std::in_place_type; |
3706 | 3705 | if (value->IsNumber()) { |
3707 | 3706 | return v8::Just(literal{in_place_type<real>, value.As<Number>()->Value()}); |
3708 | 3707 | } else if (value->IsString()) { |
@@ -3730,7 +3729,6 @@ Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) { |
3730 | 3729 | } |
3731 | 3730 | } |
3732 | 3731 | Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) { |
3733 | | - using std::in_place_type; |
3734 | 3732 | Local<Array> property_names; |
3735 | 3733 | if (!object->GetOwnPropertyNames(isolate->GetCurrentContext()) |
3736 | 3734 | .ToLocal(&property_names)) [[unlikely]] { |
@@ -3763,7 +3761,6 @@ Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) { |
3763 | 3761 | return v8::Just(value{in_place_type<decltype(map)>, std::move(map)}); |
3764 | 3762 | } |
3765 | 3763 | Maybe<transfer::value> ToValue(Isolate* isolate, Local<Array> array) { |
3766 | | - using std::in_place_type; |
3767 | 3764 | const uint32_t length = array->Length(); |
3768 | 3765 | Local<Context> context = isolate->GetCurrentContext(); |
3769 | 3766 | std::pmr::vector<literal> vec; |
|
0 commit comments