mirror of
https://github.com/nlohmann/json.git
synced 2026-02-12 00:32:26 +00:00
🏗️ adding anonymous namespace
This commit is contained in:
@@ -33,6 +33,8 @@ SOFTWARE.
|
||||
|
||||
using nlohmann::json;
|
||||
|
||||
namespace
|
||||
{
|
||||
enum test
|
||||
{
|
||||
};
|
||||
@@ -59,6 +61,7 @@ static_assert(noexcept(json(pod{})), "");
|
||||
static_assert(noexcept(j.get<pod>()), "");
|
||||
static_assert(not noexcept(j.get<pod_bis>()), "");
|
||||
static_assert(noexcept(json(pod{})), "");
|
||||
}
|
||||
|
||||
TEST_CASE("runtime checks")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user