Skip to content

Commit 87b2bf8

Browse files
committed
Remove TODOs, std::map keys are unique, arrays may contain duplicates
1 parent 0b1fe0d commit 87b2bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/tao/json/traits.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ namespace tao
12491249
{
12501250
const auto& a = v.get_array();
12511251
for( const auto& i : a ) {
1252-
r.emplace( i.template as< T >() ); // TODO: By default throw on duplicate?
1252+
r.emplace( i.template as< T >() );
12531253
}
12541254
}
12551255
};
@@ -1277,7 +1277,7 @@ namespace tao
12771277
{
12781278
const auto& o = v.get_object();
12791279
for( const auto& i : o ) {
1280-
r.emplace( i.first, i.second.template as< T >() ); // TODO: By default throw on duplicate?
1280+
r.emplace( i.first, i.second.template as< T >() );
12811281
}
12821282
}
12831283
};

0 commit comments

Comments
 (0)