id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 9215,Infinite loop when `any` constructor called for `const any&&`,Antony Polukhin,Antony Polukhin,"Code at line 70 in boost/any.hpp must look like this: {{{ template any(ValueType&& value , typename boost::disable_if >::type* = 0 // disable if value has type `any&` , typename boost::disable_if >::type* = 0) // disable if value has type `const ValueType&&` : content(new holder< typename remove_reference::type >(static_cast(value))) { } }}} Test case: {{{ #include #include const boost::any getBoolVal() { return false; } int main() { boost::any vals[] = {1.0, std::string(""1m""), getBoolVal()}; } }}} Thanks to Bo Peng for finding this issue!",Bugs,closed,Boost 1.55.0,any,Boost 1.54.0,Regression,fixed,any const rvalue,