math_opt: fixup

This commit is contained in:
Corentin Le Molgat
2025-08-29 18:08:51 +02:00
parent c89483a0db
commit b27676402f
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ add_library(${NAME} OBJECT)
file(GLOB _SRCS "*.h" "*.cc")
list(FILTER _SRCS EXCLUDE REGEX ".*_test.cc")
list(FILTER _SRCS EXCLUDE REGEX "/matchers\\.")
list(FILTER _SRCS EXCLUDE REGEX "/matchers\.")
target_sources(${NAME} PRIVATE ${_SRCS})
set_target_properties(${NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)

View File

@@ -149,17 +149,17 @@ std::vector<typename Map::mapped_type> Values(const Map& map,
namespace internal {
// The CHECK message to use when a KeyType::storage() is nullptr.
inline const std::string kKeyHasNullModelStorage =
inline constexpr const char kKeyHasNullModelStorage[] =
"The input key has null .storage().";
// The CHECK message to use when two KeyType with different storage() are used
// in the same collection.
inline const std::string kObjectsFromOtherModelStorage =
inline constexpr const char kObjectsFromOtherModelStorage[] =
"The input objects belongs to another model.";
// The Status message to use when an input KeyType is from an unexpected
// storage().
inline constexpr absl::string_view kInputFromInvalidModelStorage =
inline constexpr const char kInputFromInvalidModelStorage[] =
"the input does not belong to the same model";
// Returns a failure when the input pointer is not nullptr and points to a