- Added constructors to match the overloaded ::attribute methods.
This commit is contained in:
Paul Beckingham 2014-10-20 00:22:47 -04:00
parent c8f49bcafb
commit 97f302f276
2 changed files with 16 additions and 0 deletions

View file

@ -56,6 +56,20 @@ A::A (const std::string& name, const std::string& raw)
attribute ("raw", raw);
}
////////////////////////////////////////////////////////////////////////////////
A::A (const std::string& name, const int raw)
{
_name = name;
attribute ("raw", raw);
}
////////////////////////////////////////////////////////////////////////////////
A::A (const std::string& name, const double raw)
{
_name = name;
attribute ("raw", raw);
}
////////////////////////////////////////////////////////////////////////////////
A::~A ()
{

View file

@ -36,6 +36,8 @@ class A
public:
A ();
A (const std::string&, const std::string&);
A (const std::string&, const int);
A (const std::string&, const double);
~A ();
A (const A&);
A& operator= (const A&);