When building ros_type_introspection on Windows by MSVC, the usage of constexpr on absl::string_view caused the following build break:
ros_type_introspection\include\ros_type_introspection/stringtree_leaf.hpp(102): error C2131: expression did not evaluate to a constant
abseil-cpp\abseil_cpp\absl/strings/string_view.h(186): note: a non-constant (sub-)expression was encountered
When building
ros_type_introspection
on Windows by MSVC, the usage ofconstexpr
onabsl::string_view
caused the following build break:A similar issue was also reported on https://github.com/abseil/abseil-cpp/issues/352. For now, before a better solution comes out, I recommend to drop
constexpr
to avoid build break.