Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Policy based smart pointer

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.36 sec, absolute service time: 0.55 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp: In instantiation of ‘SmartPtr<T, CheckingPolicy>& SmartPtr<T, CheckingPolicy>::operator=(const SmartPtr<T, ChkPolicy>&) [with ChkPolicy = NoCheckPolicy; T = int; CheckingPolicy = FullCheckPolicy; SmartPtr<T, CheckingPolicy> = SmartPtr<int, FullCheckPolicy>]’:
source_file.cpp:101:23:   required from here
source_file.cpp:33:8: error: ‘int* SmartPtr<int, NoCheckPolicy>::p_’ is private
source_file.cpp:62:9: error: within this context
source_file.cpp:63:5: warning: no return statement in function returning non-void [-Wreturn-type]

        

    
                
λ
.NET NoSQL database for rapid development