From 8ecb7d53679c16e3231f1cffac77513dd7f24b4d Mon Sep 17 00:00:00 2001 From: kartik arcot Date: Mon, 23 Jan 2023 10:04:39 -0800 Subject: [PATCH] is_same --- gtsam/nonlinear/Values.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/nonlinear/Values.h b/gtsam/nonlinear/Values.h index be2df9056..725a2f107 100644 --- a/gtsam/nonlinear/Values.h +++ b/gtsam/nonlinear/Values.h @@ -338,7 +338,8 @@ namespace gtsam { // supplied \c filter function. template static bool filterHelper(const std::function filter, const ConstKeyValuePair& key_value) { - BOOST_STATIC_ASSERT((!boost::is_same::value)); + // static_assert if ValueType is not Value + static_assert(std::is_same::value, "ValueType must be type: Value"); // Filter and check the type return filter(key_value.key) && (dynamic_cast*>(&key_value.value)); }