Duration
- Implemented operator- for us by the Variant.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user