class DtorPrivate { public: DtorPrivate() {} private: ~DtorPrivate() {} friend class MyFriend; }; class MyFriend { void Test { std::vector<std::pair<DtorPrivate, DtorPrivate> > array( 16, std::make_pair(DtorPrivate(), DtorPrivate())); } } int main(int argc, char* argv[]) { MyFriend::Test(); return 0; }
VC6のコンパイラのバグでしょうか。