Skip to content

Commit dfe99be

Browse files
committed
Added a sanity check for value_ref over an empty type list.
1 parent b1fd6a2 commit dfe99be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/log/utility/value_ref.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class variant_ref
255255
public:
256256
//! Referenced value type
257257
typedef T value_type;
258+
static_assert(mpl::size< value_type >::value > 0, "Boost.Log: List of types referenced by value_ref must not be empty");
258259
//! Tag type
259260
typedef TagT tag_type;
260261

0 commit comments

Comments
 (0)