diff --git a/implementation/class.h b/implementation/class.h index 81dee205..18a52196 100644 --- a/implementation/class.h +++ b/implementation/class.h @@ -36,7 +36,10 @@ namespace jni { template -struct Class {}; +struct Class { + constexpr Class() = default; + constexpr Class(const char* name) {} +}; template , // provided where they are and aren't present. //////////////////////////////////////////////////////////////////////////////// + // To stifle a test failure. + constexpr Class() + : Object("__JNI_BIND__NO_CLASS__"), + constructors_(Constructor<>{}), + static_(), + methods_(), + fields_() {} + // Methods + Fields. explicit constexpr Class(const char* class_name, Methods_... methods, Fields_... fields) diff --git a/implementation/return.h b/implementation/return.h index 8f352be3..7b6e8f57 100644 --- a/implementation/return.h +++ b/implementation/return.h @@ -31,7 +31,7 @@ struct Return : ReturnBase { using Raw = Raw_; - constexpr Return() = default; + constexpr Return() {} template constexpr explicit Return(Raw raw) : raw_(raw) {} @@ -42,7 +42,7 @@ struct Return : ReturnBase { using Raw = void; const Void raw_{}; - constexpr Return() = default; + constexpr Return() {} }; Return() -> Return; diff --git a/metaprogramming/string_literal.h b/metaprogramming/string_literal.h index e93a4b85..b6b88ab1 100644 --- a/metaprogramming/string_literal.h +++ b/metaprogramming/string_literal.h @@ -58,9 +58,9 @@ struct StringLiteral { template StringLiteral(const char (&str)[N]) -> StringLiteral; +} // namespace jni::metaprogramming + #endif // __cplusplus >= 202002L #endif // __cplusplus -} // namespace jni::metaprogramming - #endif // JNI_BIND_METAPROGRAMMING_STRING_LITERAL_H_