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 <Path.h>
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
std::ostream& operator<< (std::ostream& out, const Path& path)
|
||||||
|
{
|
||||||
|
out << path._data;
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Path::Path ()
|
Path::Path ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#define INCLUDED_PATH
|
#define INCLUDED_PATH
|
||||||
#define L10N // Localization complete.
|
#define L10N // Localization complete.
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -62,5 +63,7 @@ public:
|
||||||
std::string _data;
|
std::string _data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::ostream& operator<< (std::ostream&, const Path&);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue