Thread: Problem with the exception class in MINGW

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    no matching function for call to `std::exception::exception(const char[33])'
    Look at the exception class definition you posted. Is there a constructor that takes a string as an argument?
    note: candidates are: std::exception::exception(const std::exception&)
    Another candidate would be the default exception constructor. So, you can either throw an exception object created with the default exception constructor, or you have to derive your own class from the exception class and throw an object from that class(which would have the type exception&).
    Last edited by 7stud; 01-19-2007 at 10:59 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with friend class declaration in a namespace
    By Angus in forum C++ Programming
    Replies: 2
    Last Post: 12-09-2008, 01:29 PM
  2. template class default constructor problem
    By kocika73 in forum C++ Programming
    Replies: 3
    Last Post: 04-22-2006, 09:42 PM
  3. problem with class
    By Mr.Pink in forum C++ Programming
    Replies: 26
    Last Post: 07-10-2005, 10:24 PM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. static class problem.
    By Sebastiani in forum C++ Programming
    Replies: 3
    Last Post: 10-16-2002, 03:27 PM