Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/gul17/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,8 @@ operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_weekday_last&
inline namespace literals
{

constexpr gul17::date::day operator "" _d(unsigned long long d) noexcept;
constexpr gul17::date::year operator "" _y(unsigned long long y) noexcept;
constexpr gul17::date::day operator ""_d(unsigned long long d) noexcept;
constexpr gul17::date::year operator ""_y(unsigned long long y) noexcept;

} // inline namespace literals
#endif // !defined(_MSC_VER) || (_MSC_VER >= 1900)
Expand Down Expand Up @@ -1809,14 +1809,14 @@ inline namespace literals

constexpr inline
gul17::date::day
operator "" _d(unsigned long long d) noexcept
operator ""_d(unsigned long long d) noexcept
{
return gul17::date::day{static_cast<unsigned>(d)};
}

constexpr inline
gul17::date::year
operator "" _y(unsigned long long y) noexcept
operator ""_y(unsigned long long y) noexcept
{
return gul17::date::year(static_cast<int>(y));
}
Expand Down
2 changes: 1 addition & 1 deletion include/gul17/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class span {

/// See [std::span](https://en.cppreference.com/w/cpp/container/span).
constexpr span(pointer first_elem, pointer last_elem)
: storage_(first_elem, last_elem - first_elem)
: storage_(first_elem, static_cast<index_type>(last_elem - first_elem))
{}

/// See [std::span](https://en.cppreference.com/w/cpp/container/span).
Expand Down
Loading