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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -