diff --git a/components/nif/niffile.hpp b/components/nif/niffile.hpp index 900c360bb..9a2acbb9f 100644 --- a/components/nif/niffile.hpp +++ b/components/nif/niffile.hpp @@ -48,14 +48,14 @@ class NIFFile public: /// Used if file parsing fails - void fail(const std::string &msg) + void fail(const std::string &msg) const { std::string err = " NIFFile Error: " + msg; err += "\nFile: " + filename; throw std::runtime_error(err); } /// Used when something goes wrong, but not catastrophically so - void warn(const std::string &msg) + void warn(const std::string &msg) const { std::cerr << " NIFFile Warning: " << msg < NIFFilePtr; +typedef boost::shared_ptr NIFFilePtr;