🛠 C++11 - Properly hide deduced return type from view
This commit is contained in:
parent
fbfbf6899c
commit
864d612554
@ -1833,6 +1833,15 @@ decltype(auto) get_appendable_buffer(Output&& out) {
|
|||||||
return get_buffer<T>(std::forward<Output>(out));
|
return get_buffer<T>(std::forward<Output>(out));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename Buf, typename Output>
|
||||||
|
FMT_INLINE auto get_iterator(Buf& buf, Output&&) -> decltype(buf.out()) {
|
||||||
|
return buf.out();
|
||||||
|
}
|
||||||
|
template <typename T, typename Output>
|
||||||
|
auto get_iterator(buffer<T>&, Output&& out) {
|
||||||
|
return out;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
template <typename T, typename OutputIt>
|
template <typename T, typename OutputIt>
|
||||||
auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
|
auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> {
|
||||||
@ -1843,16 +1852,16 @@ template <typename T, typename Buf,
|
|||||||
auto get_buffer(std::back_insert_iterator<Buf> out) -> buffer<char>& {
|
auto get_buffer(std::back_insert_iterator<Buf> out) -> buffer<char>& {
|
||||||
return get_container(out);
|
return get_container(out);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
template <typename Buf, typename Output>
|
template <typename Buf, typename OutputIt>
|
||||||
FMT_INLINE auto get_iterator(Buf& buf, Output&&) -> decltype(buf.out()) {
|
FMT_INLINE auto get_iterator(Buf& buf, OutputIt) -> decltype(buf.out()) {
|
||||||
return buf.out();
|
return buf.out();
|
||||||
}
|
}
|
||||||
template <typename T, typename Output>
|
template <typename T, typename OutputIt>
|
||||||
auto get_iterator(buffer<T>&, Output&& out) {
|
auto get_iterator(buffer<T>&, OutputIt out) -> OutputIt {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// A type-erased reference to an std::locale to avoid a heavy <locale> include.
|
// A type-erased reference to an std::locale to avoid a heavy <locale> include.
|
||||||
class locale_ref {
|
class locale_ref {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user