- Implemented operator- for us by the Variant.
This commit is contained in:
Paul Beckingham 2011-06-14 21:29:17 -04:00
parent 6242c4a8ae
commit c23c374b17
2 changed files with 8 additions and 0 deletions

View file

@ -151,6 +151,13 @@ Duration& Duration::operator= (const Duration& other)
return *this;
}
////////////////////////////////////////////////////////////////////////////////
Duration& Duration::operator- (const Duration& other)
{
throw std::string ("Error: Duration::operator- unimplemented");
return *this;
}
////////////////////////////////////////////////////////////////////////////////
std::string Duration::format () const
{

View file

@ -41,6 +41,7 @@ public:
bool operator< (const Duration&);
bool operator> (const Duration&);
Duration& operator= (const Duration&);
Duration& operator- (const Duration&);
~Duration (); // Destructor
operator time_t () const;