id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 9746,Modern Sun CC compiler detects error in intrusive library header,Maxim Kartashev ,Ion Gaztañaga,"The problem can be reproduced as follows: $ cat a.cc {{{ #include typedef boost::interprocess::managed_mapped_file::segment_manager segment_manager_t; int main () { return 0; } }}} {{{ $ CC -I .../boost_1_55_0 a.cc -library=stlport4 ... "".../boost_1_55_0/boost/intrusive/detail/memory_util.hpp"", line 192: Error: Templates can only declare classes or functions. "".../boost_1_55_0/boost/intrusive/detail/memory_util.hpp"", line 208: Error: Templates can only declare classes or functions. ... }}} The reason is that modern Sun CC compiler can understand dependent templates (constructs like ""T::template Q"") and doesn't need workaround anymore in boost/intrusive/detail/memory_util.hpp. Attached patch fixes the problem. ",Bugs,closed,To Be Determined,intrusive,Boost 1.55.0,Problem,fixed,,