Synchronize single-header and basic variants of json.hpp
This commit is contained in:
parent
7b627c7bff
commit
5f566f090b
@ -5432,12 +5432,8 @@ class basic_json
|
||||
}
|
||||
|
||||
// add element to array (perfect forwarding)
|
||||
#ifdef JSON_HAS_CPP_17
|
||||
return m_value.array->emplace_back(std::forward<Args>(args)...);
|
||||
#else
|
||||
m_value.array->emplace_back(std::forward<Args>(args)...);
|
||||
return m_value.array->back();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user