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

dynamic_cast in assert Causing Error

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,36 sec, absolute service time: 1,4 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp(16): warning C4002: too many actual parameters for macro 'assert'
source_file.cpp(16): error C2059: syntax error: ')'
source_file.cpp(18): error C2947: expecting '>' to terminate template-argument-list, found '<'
source_file.cpp(18): error C2977: 'std::pair': too many template arguments
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\utility(81): note: see declaration of 'std::pair'
source_file.cpp(18): error C2059: syntax error: '<template-id>'
source_file.cpp(18): error C3203: 'pair': unspecialized class template can't be used as a template argument for template parameter 'T', expected a real type
source_file.cpp(18): error C2061: syntax error: identifier 'test'
source_file.cpp(18): error C2143: syntax error: missing ')' before ';'

        

    
                
λ
.NET NoSQL database for rapid development