Skip to content

Commit

Permalink
silence warnings in gcc 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Nov 12, 2016
1 parent 33f7cc6 commit 63e33bd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tz_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ namespace detail

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
{
private:
Expand Down Expand Up @@ -123,6 +129,20 @@ class MonthDayTime
// local, it uses the save_ from the chronologically previous Rule, or if
// 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
{
private:
Expand Down

0 comments on commit 63e33bd

Please sign in to comment.