Skip to content

Commit

Permalink
Remove TODOs, std::map keys are unique, arrays may contain duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Feb 18, 2018
1 parent 0b1fe0d commit 87b2bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tao/json/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ namespace tao
{
const auto& a = v.get_array();
for( const auto& i : a ) {
r.emplace( i.template as< T >() ); // TODO: By default throw on duplicate?
r.emplace( i.template as< T >() );
}
}
};
Expand Down Expand Up @@ -1277,7 +1277,7 @@ namespace tao
{
const auto& o = v.get_object();
for( const auto& i : o ) {
r.emplace( i.first, i.second.template as< T >() ); // TODO: By default throw on duplicate?
r.emplace( i.first, i.second.template as< T >() );
}
}
};
Expand Down

0 comments on commit 87b2bf8

Please sign in to comment.