Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::domain_error is an exception thrown when a mathematically invalid domain is used.
std::domain_error is a derived class from std::logic_error. std::logic_error is a derived class from td::exception.
#include <cmath> |
Note: I hoped that std::domain_error would be thrown, instead the value 'nan' would be written to the screen.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.