id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7876,container::map fails with unions,p.brockamp@…,Ion Gaztañaga,"Hello, At least in boost 1.52.0 there seems to be a problem with container::map and the use of unions (and I suppose the problem might exist with similar types like container::set, etc., though I haven't tested it). Try this code snippet to reproduce: {{{ #include #include union TU {}; void boostMapFail(void) { std::map stdTest; boost::container::map boostTest; TU u; stdTest[5U] = u; // Does compile :-) boostTest[5U] = u; // Fails miserably :-( } }}} This fails under and MSVC2005 and GCC 4.3: MSVC2005: boost/move/move.hpp(254) : error C2569: 'TU' : enum/union cannot be used as a base class GCC 4.3: boost/move/move.hpp:254: error: base type 'TU' fails to be a struct or class type On the contrary, using std::map instead of boost::container::map *does* compile without a hitch, so I would expect boost to behave identically. Best regards Peter ",Bugs,closed,To Be Determined,container,Boost 1.52.0,Problem,fixed,container map union,matekm@…