c++ - expected type-specifier before '...' token -
expected type-specifier before '...' token
this code
template< typename t, int t_nfixedbytes = 128, class allocator = ccrtallocator > class ctempbuffer { public: ctempbuffer() throw() : m_p( null ) { } ctempbuffer( size_t nelements ) throw( ... ) : <---error here m_p( null ) { allocate( nelements ); } ... }
now if rid of throw(...) in above statement error resolved.any suggestions on why mingw doesnt throw(...)
here ?
actually, throw(...)
not standard c++ syntax, msvc++ specific extension. means function can throw exception, equivalent having no exception specification @ all, can safely remove it.
Comments
Post a Comment