forked from HowardHinnant/date
Silence GCC conversion warning for bitfields
* Used only in weekday_indexed.
This commit is contained in:
@@ -1877,6 +1877,10 @@ weekday_indexed::ok() const NOEXCEPT
|
|||||||
return weekday().ok() && 1 <= index_ && index_ <= 5;
|
return weekday().ok() && 1 <= index_ && index_ <= 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wconversion"
|
||||||
|
|
||||||
CONSTCD11
|
CONSTCD11
|
||||||
inline
|
inline
|
||||||
weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCEPT
|
weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCEPT
|
||||||
@@ -1884,6 +1888,9 @@ weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCE
|
|||||||
, index_(static_cast<decltype(index_)>(index))
|
, index_(static_cast<decltype(index_)>(index))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif // __GNUC__
|
||||||
|
|
||||||
template<class CharT, class Traits>
|
template<class CharT, class Traits>
|
||||||
inline
|
inline
|
||||||
std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
|
Reference in New Issue
Block a user