File testclass.hh contains:
=====
#include <string>
class testclass1
{
public:
testclass1(): fs("") {};
testclass1 (const string& s) {};
virtual ~testclass1() {};
string fs;
};
class testclass2
{
public:
testclass2(): fs("") {};
testclass2 (const string& s): fs(s) {};
virtual ~testclass2() {};
string fs;
};
=====
Under ROOT 3.03/05 running under Red Hat 7.2:
root [0] .L testclass.hh
root [1] string s="test"
root [2] testclass1 z1(s)
root [3] testclass2 z2(s)
$
testclass1 works, testclass2 aborts ROOT with no error message. The
only difference is the initialization of fs. Why?
--
Richard S. Holmes, Research Assistant Professor
Physics Department, Syracuse University
Syracuse, NY 13244
(315) 443-5977
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET