File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ namespace tao
632632 void unsafe_assign ( const std::initializer_list< pair< Traits > > & l )
633633 {
634634 unsafe_emplace_object ();
635- for ( auto & e : l ) {
635+ for ( const auto & e : l ) {
636636 const auto r = unsafe_emplace ( e.key , e.value );
637637 if ( ! r.second ) {
638638 throw std::runtime_error ( " duplicate key detected: " + r.first ->first );
@@ -821,7 +821,7 @@ namespace tao
821821 void insert ( const std::initializer_list< pair< Traits > > & l )
822822 {
823823 prepare_object ();
824- for ( auto & e : l ) {
824+ for ( const auto & e : l ) {
825825 const auto r = unsafe_emplace ( e.key , e.value );
826826 if ( ! r.second ) {
827827 throw std::runtime_error ( " duplicate key detected: " + r.first ->first );
You can’t perform that action at this time.
0 commit comments