Menu

#191 SmallObj.cpp(1132): error C2248: 'std::bad_alloc::bad_alloc': cannot access private member declared in class 'std::bad_alloc'

v1.0_(example)
open
nobody
None
5
2015-10-19
2015-10-19
Feiyun Wang
No

loki-0.1.7 VC2015 compile error. Make it the same as GCC version please.

1>------ Build started: Project: Library, Configuration: Debug Win32 ------
1>  SmallObj.cpp
1>SmallObj.cpp(1132): error C2248: 'std::bad_alloc::bad_alloc': cannot access private member declared in class 'std::bad_alloc'
1>  D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime_exception.h(122): note: see declaration of 'std::bad_alloc::bad_alloc'
1>  D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime_exception.h(109): note: see declaration of 'std::bad_alloc'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Discussion


Log in to post a comment.