mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Duration
- Implemented operator- for us by the Variant.
This commit is contained in:
parent
6242c4a8ae
commit
c23c374b17
2 changed files with 8 additions and 0 deletions
|
@ -151,6 +151,13 @@ Duration& Duration::operator= (const Duration& other)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Duration& Duration::operator- (const Duration& other)
|
||||||
|
{
|
||||||
|
throw std::string ("Error: Duration::operator- unimplemented");
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string Duration::format () const
|
std::string Duration::format () const
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,6 +41,7 @@ public:
|
||||||
bool operator< (const Duration&);
|
bool operator< (const Duration&);
|
||||||
bool operator> (const Duration&);
|
bool operator> (const Duration&);
|
||||||
Duration& operator= (const Duration&);
|
Duration& operator= (const Duration&);
|
||||||
|
Duration& operator- (const Duration&);
|
||||||
~Duration (); // Destructor
|
~Duration (); // Destructor
|
||||||
|
|
||||||
operator time_t () const;
|
operator time_t () const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue