Silence GCC conversion warning for bitfields

* Used only in weekday_indexed.
This commit is contained in:
Howard Hinnant 2017-11-20 14:50:48 -05:00
parent f4b12ab023
commit 9ca582d9da

View File

@ -1877,6 +1877,10 @@ weekday_indexed::ok() const NOEXCEPT
return weekday().ok() && 1 <= index_ && index_ <= 5;
}
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wconversion"
CONSTCD11
inline
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))
{}
# pragma GCC diagnostic pop
#endif // __GNUC__
template<class CharT, class Traits>
inline
std::basic_ostream<CharT, Traits>&