You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 1564 uses move semantics when working with std::initializer_list. But when I debug the type of, say, element[1], using clang++ 3.5 and compiling the unit tests, the compiler deduces a const reference type (see also std::initializer_list::begin). There are no meaningful semantics for moving const references so I wanted to double check with you guys.
Activity
nlohmann commentedon Mar 21, 2016
@ahorn you are right - http://stackoverflow.com/a/8193157/266378 seems to mention the same issue.
nlohmann commentedon Mar 30, 2016
Thanks for noting! I removed the
std::movecalls to remove the appearance that move semantics is applied.