mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement
- Added ostream converter for Path object.
This commit is contained in:
parent
b63bd9e985
commit
65e8cc63fc
2 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,13 @@
|
|||
#include <Path.h>
|
||||
#include <cmake.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::ostream& operator<< (std::ostream& out, const Path& path)
|
||||
{
|
||||
out << path._data;
|
||||
return out;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Path::Path ()
|
||||
{
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#define INCLUDED_PATH
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
|
@ -62,5 +63,7 @@ public:
|
|||
std::string _data;
|
||||
};
|
||||
|
||||
std::ostream& operator<< (std::ostream&, const Path&);
|
||||
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue