Article ID: 171064
Article Last Modified on 7/5/2005
// Compile options needed: none
struct _Tree {
_Tree(const int& _Parg) {}
};
template<class _Pr>
struct set {
_Tree _Tr;
set(const _Pr& _Pred = _Pr()) : _Tr(_Pred) {}
};
struct Boo
{
Boo();
set<int>& _xSet;
};
//set<int> x; // uncomment for workaround
Boo::Boo()
: _xSet(*new set<int>) //C2512 here
{}
Additional query words: visual studio service pack
Keywords: kbbug kbfix kbvc600fix KB171064