bombela/backward-cpp

error in backward.hpp

fabio1999ita opened this issue · 0 comments

i get a lots of errors in same line:

image

C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2589: '(': illegal token on right side of '::'
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2144: syntax error: 'unknown-type' should be preceded by ')'
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2661: 'std::vector<void *,std::allocator<void *>>::resize': no overloaded function takes 0 arguments
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2144: syntax error: 'unknown-type' should be preceded by ';'
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2143: syntax error: missing ')' before '.'
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C3928: '->': trailing return type is not allowed after a parenthesized declarator
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C3484: syntax error: expected '->' before the return type
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C3613: missing return type after '->' ('int' assumed)
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2146: syntax error: missing ';' before identifier 'size'
C:\Users\fabio\CLionProjects\SchifoAPI\backward/backward.hpp(1210): error C2059: syntax error: ')'

adding this two 2 line above the problematic line no more error

#undef max
#undef min
_stacktrace.resize(std::min(_stacktrace.size(), skip_n_firsts() + depth));

image