|
23 | 23 | namespace node { |
24 | 24 | namespace sqlite { |
25 | 25 |
|
| 26 | +using std::in_place_type; |
26 | 27 | using v8::Array; |
27 | 28 | using v8::ArrayBuffer; |
28 | 29 | using v8::BackingStoreInitializationMode; |
@@ -3868,7 +3869,6 @@ struct bind_value { |
3868 | 3869 | }; |
3869 | 3870 |
|
3870 | 3871 | literal FromColumn(sqlite3* db, sqlite3_stmt* stmt, int col_index) { |
3871 | | - using std::in_place_type; |
3872 | 3872 | int type = sqlite3_column_type(stmt, col_index); |
3873 | 3873 | switch (type) { |
3874 | 3874 | case SQLITE_NULL: |
@@ -3972,7 +3972,6 @@ struct to_v8_value { |
3972 | 3972 | }; |
3973 | 3973 |
|
3974 | 3974 | Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) { |
3975 | | - using std::in_place_type; |
3976 | 3975 | if (value->IsNumber()) { |
3977 | 3976 | return v8::Just(literal{in_place_type<real>, value.As<Number>()->Value()}); |
3978 | 3977 | } else if (value->IsString()) { |
@@ -4000,7 +3999,6 @@ Maybe<transfer::literal> ToLiteral(Isolate* isolate, Local<Value> value) { |
4000 | 3999 | } |
4001 | 4000 | } |
4002 | 4001 | Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) { |
4003 | | - using std::in_place_type; |
4004 | 4002 | Local<Array> property_names; |
4005 | 4003 | if (!object->GetOwnPropertyNames(isolate->GetCurrentContext()) |
4006 | 4004 | .ToLocal(&property_names)) [[unlikely]] { |
@@ -4033,7 +4031,6 @@ Maybe<transfer::value> ToValue(Isolate* isolate, Local<Object> object) { |
4033 | 4031 | return v8::Just(value{in_place_type<decltype(map)>, std::move(map)}); |
4034 | 4032 | } |
4035 | 4033 | Maybe<transfer::value> ToValue(Isolate* isolate, Local<Array> array) { |
4036 | | - using std::in_place_type; |
4037 | 4034 | const uint32_t length = array->Length(); |
4038 | 4035 | Local<Context> context = isolate->GetCurrentContext(); |
4039 | 4036 | std::pmr::vector<literal> vec; |
|
0 commit comments