From 87b2bf8b02cd09d9208a28d4e8c02f75cb3eb922 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Sun, 18 Feb 2018 21:53:42 +0100 Subject: [PATCH] Remove TODOs, std::map keys are unique, arrays may contain duplicates --- include/tao/json/traits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tao/json/traits.hpp b/include/tao/json/traits.hpp index 820831b2..6ed145c6 100644 --- a/include/tao/json/traits.hpp +++ b/include/tao/json/traits.hpp @@ -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 >() ); } } }; @@ -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 >() ); } } };