mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
silence warnings in gcc 6.2
This commit is contained in:
parent
33f7cc6de4
commit
63e33bdf49
20
tz_private.h
20
tz_private.h
@ -42,6 +42,12 @@ namespace detail
|
|||||||
|
|
||||||
enum class tz {utc, local, standard};
|
enum class tz {utc, local, standard};
|
||||||
|
|
||||||
|
//forward declare to avoid warnings in gcc 6.2
|
||||||
|
class MonthDayTime;
|
||||||
|
std::istream& operator>>(std::istream& is, MonthDayTime& x);
|
||||||
|
std::ostream& operator<<(std::ostream& os, const MonthDayTime& x);
|
||||||
|
|
||||||
|
|
||||||
class MonthDayTime
|
class MonthDayTime
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@ -123,6 +129,20 @@ public:
|
|||||||
// local, it uses the save_ from the chronologically previous Rule, or if
|
// local, it uses the save_ from the chronologically previous Rule, or if
|
||||||
// there is none, 0.
|
// there is none, 0.
|
||||||
|
|
||||||
|
//forward declare to avoid warnings in gcc 6.2
|
||||||
|
class Rule;
|
||||||
|
bool operator==(const Rule& x, const Rule& y);
|
||||||
|
bool operator<(const Rule& x, const Rule& y);
|
||||||
|
bool operator==(const Rule& x, const date::year& y);
|
||||||
|
bool operator<(const Rule& x, const date::year& y);
|
||||||
|
bool operator==(const date::year& x, const Rule& y);
|
||||||
|
bool operator<(const date::year& x, const Rule& y);
|
||||||
|
bool operator==(const Rule& x, const std::string& y);
|
||||||
|
bool operator<(const Rule& x, const std::string& y);
|
||||||
|
bool operator==(const std::string& x, const Rule& y);
|
||||||
|
bool operator<(const std::string& x, const Rule& y);
|
||||||
|
std::ostream& operator<<(std::ostream& os, const Rule& r);
|
||||||
|
|
||||||
class Rule
|
class Rule
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user