fix compile error on basic_string_view::to_string when Allocator is user-defined

This commit is contained in:
gnaggnoyil authored and Andrey Semashev committed 2016-09-01 21:56:20 +03:00
1 parent 39577f86d1
commit e5932ebb08
2 files changed
+29 -1

No files matched your search

+1 -1
View File
@@ -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