Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme 

unique_ptr empty deleter

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,45 sec, absolute service time: 1,48 sec 
edit mode |  history
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1293): error C2338: unique_ptr constructed with null deleter pointer
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\memory(1289): note: while compiling class template member function 'std::unique_ptr<int,void (__cdecl *)(int *)>::unique_ptr(void) noexcept'
source_file.cpp(7): note: see reference to function template instantiation 'std::unique_ptr<int,void (__cdecl *)(int *)>::unique_ptr(void) noexcept' being compiled
source_file.cpp(7): note: see reference to class template instantiation 'std::unique_ptr<int,void (__cdecl *)(int *)>' being compiled
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64