[Bug c++/39711] fail to use template template parameter with default values
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 10 09:40:00 GMT 2009
------- Comment #4 from paolo dot carlini at oracle dot com 2009-04-10 09:40 -------
This is illegal in C++03, because std::map has 4 template parameters, no matter
the defaults. Changing class A like the below works. In c++0x, thanks to
typedef templates neater solutions will be possible.
template <typename Key, typename Data,
template <typename Key, typename Data,
typename = std::less<Key>,
typename = std::allocator<std::pair<const Key, Data> > >
class Map>
...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39711
More information about the Gcc-bugs
mailing list