Fix unused_func warning. Function was declared but not defined

This commit is contained in:
James Moore 2020-01-11 12:26:29 +00:00
parent e9da9ca93f
commit 658e613902

View File

@ -42,10 +42,10 @@ enum test
struct pod {};
struct pod_bis {};
void to_json(json&, pod) noexcept;
void to_json(json&, pod_bis);
void from_json(const json&, pod) noexcept;
void from_json(const json&, pod_bis);
void to_json(json&, pod) noexcept{}
void to_json(json&, pod_bis){}
void from_json(const json&, pod) noexcept{}
void from_json(const json&, pod_bis){}
static json j;
static_assert(noexcept(json{}), "");