Use old emplace_back even with C++17
clang-7 has old signature returning void
This commit is contained in:
parent
f7f75c8d2a
commit
7b627c7bff
@ -21957,12 +21957,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