mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 05:04:27 +02:00
Add extra parse_manip constructor to avoid ambiguity
This commit is contained in:
@@ -8071,6 +8071,15 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
#if HAS_STRING_VIEW
|
#if HAS_STRING_VIEW
|
||||||
|
parse_manip(const CharT* format, Parsable& tp,
|
||||||
|
std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
|
||||||
|
std::chrono::minutes* offset = nullptr)
|
||||||
|
: format_(format)
|
||||||
|
, tp_(tp)
|
||||||
|
, abbrev_(abbrev)
|
||||||
|
, offset_(offset)
|
||||||
|
{}
|
||||||
|
|
||||||
parse_manip(std::basic_string_view<CharT> format, Parsable& tp,
|
parse_manip(std::basic_string_view<CharT> format, Parsable& tp,
|
||||||
std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
|
std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
|
||||||
std::chrono::minutes* offset = nullptr)
|
std::chrono::minutes* offset = nullptr)
|
||||||
|
Reference in New Issue
Block a user