File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
include/tao/json/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ namespace tao
2727 // void commit_element() {}
2828 // void end_array() {}
2929 // void begin_object() {}
30- // void commit_key( std::string && key ) {}
30+ // void commit_key( std::string && v ) {}
3131 // void commit_member() {}
3232 // void end_object() {}
3333 // };
@@ -77,9 +77,9 @@ namespace tao
7777 current->unsafe_emplace_object ();
7878 }
7979
80- void commit_key ( std::string && key )
80+ void commit_key ( std::string && v )
8181 {
82- const auto r = current->unsafe_emplace ( std::move ( key ), json::null );
82+ const auto r = current->unsafe_emplace ( std::move ( v ), json::null );
8383 if ( ! r.second ) {
8484 // TODO: throw on duplicate key? offer a choice?
8585 r.first ->second = json::null;
You can’t perform that action at this time.
0 commit comments