-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
I'm trying to replace https://github.com/ocornut/imgui 's IM_ASSERT
macro with libassert's ASSERT
but running into this error.
build/_deps/libassert-src/include/libassert/expression-decomposition.hpp:53:44: error: comparison between pointer and integer ('char *' and 'long')
53 | LIBASSERT_GEN_OP_BOILERPLATE(neq, !=);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
build/_deps/libassert-src/include/libassert/expression-decomposition.hpp:26:45: note: expanded from macro 'LIBASSERT_GEN_OP_BOILERPLATE'
26 | return std::forward<A>(lhs) op std::forward<B>(rhs); \
| ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
build/_deps/libassert-src/include/libassert/expression-decomposition.hpp:265:20: note: in instantiation of function template specialization 'libassert::detail::ops::neq::operator()<char *const &, long &>' requested here
265 | return C()(a, b);
| ^
build/_deps/imgui-src/imgui.h:2821:51: note: in instantiation of member function 'libassert::detail::expression_decomposer<char *const &, long, libassert::detail::ops::neq>::get_value' requested here
2821 | inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; }
| ^
src/imgui_config.h:9:26: note: expanded from macro 'IM_ASSERT'
9 | #define IM_ASSERT(_EXPR) ASSERT(_EXPR) \
| ^
build/_deps/libassert-src/include/libassert/assert-macros.hpp:340:23: note: expanded from macro 'ASSERT'
340 | #define ASSERT(...) LIBASSERT_ASSERT(__VA_ARGS__)
libassert v2.2.1
AppleClang 16.0.0
-std=gnu++2b
Metadata
Metadata
Assignees
Labels
No labels