id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11270,bost::shared_ptr && boost::optional fail to compile in single if statement,Vladimir Venediktov,Peter Dimov," {{{ /* using sun 12.4 with std=c++11 does not compile shared_ptr and optional in single if statement , example : if ( ptr && opt_value ) giving following message : Error: The operation ""boost::shared_ptr && boost::optional"" is illegal boost version : 1.58 compilation command : /appl/toolbox/solarisstudio12.4/bin/CC -std=c++11 -I/home/vvenedik/C++/boost_1_58_0 -c main_5.cpp -o main_5.o */ #include #include #include int main() { boost::shared_ptr ptr(new int) ; boost::optional opt_int; opt_int = 5; if ( ptr && opt_int ) { std::cout << ""compiled and ran OK"" << std::endl; } } }}} ",Bugs,new,To Be Determined,smart_ptr,Boost 1.58.0,Problem,,boost::shared_ptr && boost::optional,Sun Studio 12.4 -std=c++11