mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-15 10:18:03 +08:00
Fix deduction error in parse where only offset is requested
This commit is contained in:
parent
973bd393bc
commit
9d0bcdb63f
@ -7591,7 +7591,9 @@ auto
|
|||||||
parse(const std::basic_string<CharT, Traits, Alloc>& format, Parsable& tp,
|
parse(const std::basic_string<CharT, Traits, Alloc>& format, Parsable& tp,
|
||||||
std::chrono::minutes& offset)
|
std::chrono::minutes& offset)
|
||||||
-> decltype(from_stream(std::declval<std::basic_istream<CharT, Traits>&>(),
|
-> decltype(from_stream(std::declval<std::basic_istream<CharT, Traits>&>(),
|
||||||
format.c_str(), tp, nullptr, &offset),
|
format.c_str(), tp,
|
||||||
|
std::declval<std::basic_string<CharT, Traits, Alloc>*>(),
|
||||||
|
&offset),
|
||||||
parse_manip<Parsable, CharT, Traits, Alloc>{format, tp, nullptr, &offset})
|
parse_manip<Parsable, CharT, Traits, Alloc>{format, tp, nullptr, &offset})
|
||||||
{
|
{
|
||||||
return {format, tp, nullptr, &offset};
|
return {format, tp, nullptr, &offset};
|
||||||
@ -7637,7 +7639,7 @@ inline
|
|||||||
auto
|
auto
|
||||||
parse(const CharT* format, Parsable& tp, std::chrono::minutes& offset)
|
parse(const CharT* format, Parsable& tp, std::chrono::minutes& offset)
|
||||||
-> decltype(from_stream(std::declval<std::basic_istream<CharT>&>(), format,
|
-> decltype(from_stream(std::declval<std::basic_istream<CharT>&>(), format,
|
||||||
tp, nullptr, &offset),
|
tp, std::declval<std::basic_string<CharT>*>(), &offset),
|
||||||
parse_manip<Parsable, CharT>{format, tp, nullptr, &offset})
|
parse_manip<Parsable, CharT>{format, tp, nullptr, &offset})
|
||||||
{
|
{
|
||||||
return {format, tp, nullptr, &offset};
|
return {format, tp, nullptr, &offset};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user