diff --git a/include/boost/log/utility/value_ref.hpp b/include/boost/log/utility/value_ref.hpp index 855ca73..c4255ac 100644 --- a/include/boost/log/utility/value_ref.hpp +++ b/include/boost/log/utility/value_ref.hpp @@ -255,6 +255,7 @@ class variant_ref public: //! Referenced value type typedef T value_type; + static_assert(mpl::size< value_type >::value > 0, "Boost.Log: List of types referenced by value_ref must not be empty"); //! Tag type typedef TagT tag_type;