forked from boostorg/utility
fix compile error on basic_string_view::to_string when Allocator is user-defined
This commit is contained in:
1 parent
39577f86d1
commit
e5932ebb08
2 files changed
+29
-1
No files matched your search
@@ -157,7 +157,7 @@ namespace boost {
|
||||
|
||||
#ifndef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
||||
template<typename Allocator = std::allocator<charT> >
|
||||
std::basic_string<charT, traits> to_string(const Allocator& a = Allocator()) const {
|
||||
std::basic_string<charT, traits, Allocator> to_string(const Allocator& a = Allocator()) const {
|
||||
return std::basic_string<charT, traits, Allocator>(begin(), end(), a);
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user