From e3a9102b158c68d38a9481bc307be95969a254ea Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Thu, 12 Dec 2013 22:32:46 +0100 Subject: [PATCH] Use BOOST_THROW_EXCEPTION macro to throw Signed-off-by: Gregor Jasny --- include/boost/assign/list_of.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/assign/list_of.hpp b/include/boost/assign/list_of.hpp index 6da444b..d3dfa38 100644 --- a/include/boost/assign/list_of.hpp +++ b/include/boost/assign/list_of.hpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -176,7 +177,7 @@ namespace assign_detail #endif const std::size_t sz = ar.size(); if( sz < static_cast(this)->size() ) - throw assign::assignment_exception( "array initialized with too many elements" ); + BOOST_THROW_EXCEPTION( assign::assignment_exception( "array initialized with too many elements" ) ); std::size_t n = 0; iterator i = begin(), e = end();