[ox/std] Fix warning about unused private variable
This commit is contained in:
parent
02d92449f9
commit
ffce1dc4df
2
deps/ox/src/ox/std/typetraits.hpp
vendored
2
deps/ox/src/ox/std/typetraits.hpp
vendored
@ -81,7 +81,7 @@ template<typename T>
|
||||
struct is_class: ox::integral_constant<bool, !ox::is_union<T>::value && ox::memberable<T>(0)> {};
|
||||
|
||||
namespace test {
|
||||
class TestClass {int i;};
|
||||
struct TestClass {int i;};
|
||||
union TestUnion {int i;};
|
||||
static_assert(ox::is_class<TestClass>::value == true);
|
||||
static_assert(ox::is_class<TestUnion>::value == false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user