Only non-default constructor in class without a constructor

why I can’t compile this with aclic?

class BadConversion : public std::runtime_error {
 public:
   BadConversion(std::string const& s)
     : std::runtime_error(s)
     { }
 };
Info in <TUnixSystem::ACLiC>: creating shared library /gpfs/storage_4/users/home/turra/diphoton/utils/filemanager/./filemanager_cpp.so
/gpfs/storage_4/users/home/turra/diphoton/utils/filemanager/filemanager_cpp_ACLiC_dict.cxx:51: error: base `std::runtime_error' with only non-default constructor in class without a constructor
g++34: /gpfs/storage_4/users/home/turra/diphoton/utils/filemanager/filemanager_cpp_ACLiC_dict.o: No such file or directory

Hi,

This is a consequence of some of the dictionary mechanism not knowing that std::runtime_error has not default constructor. To work around the issue, either disable the I/O support for your class:#ifdef __MAKECINT__ #pragma link C++ class BadConversion-; #endifor you can simply instrument you class:class BadConversion : public std::runtime_error { public: BadConversion(std::string const& s) : std::runtime_error(s) { } ClassDef(BadConversion,2); };Cheers,
Philippe.