[libcxx-commits] [libcxx] 313d897 - [libc++] Fix parsing <string> in C++03.
Eric Fiselier via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 15 14:30:32 PST 2020
Author: Eric Fiselier
Date: 2020-01-15T17:29:55-05:00
New Revision: 313d89724ce3ccf66c1c51849903e1e6d184dd85
URL: https://github.com/llvm/llvm-project/commit/313d89724ce3ccf66c1c51849903e1e6d184dd85
DIFF: https://github.com/llvm/llvm-project/commit/313d89724ce3ccf66c1c51849903e1e6d184dd85.diff
LOG: [libc++] Fix parsing <string> in C++03.
Specifically, add a space between >> when closing templates.
Added:
Modified:
libcxx/include/string
Removed:
################################################################################
diff --git a/libcxx/include/string b/libcxx/include/string
index a63c3e1b402b..255630126816 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -813,7 +813,7 @@ public:
basic_string(basic_string&& __str, const allocator_type& __a);
#endif // _LIBCPP_CXX03_LANG
- template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t>>
+ template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
_LIBCPP_INLINE_VISIBILITY
basic_string(const _CharT* __s) : __r_(__default_init_tag(), __default_init_tag()) {
_LIBCPP_ASSERT(__s != nullptr, "basic_string(const char*) detected nullptr");
@@ -823,7 +823,7 @@ public:
# endif
}
- template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t>>
+ template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
_LIBCPP_INLINE_VISIBILITY
basic_string(const _CharT* __s, const _Allocator& __a);
@@ -834,7 +834,7 @@ public:
_LIBCPP_INLINE_VISIBILITY
basic_string(size_type __n, _CharT __c);
- template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t>>
+ template <class = _EnableIf<__is_allocator<_Allocator>::value, nullptr_t> >
_LIBCPP_INLINE_VISIBILITY
basic_string(size_type __n, _CharT __c, const _Allocator& __a);
@@ -858,10 +858,10 @@ public:
_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS
explicit basic_string(const _Tp& __t, const allocator_type& __a);
- template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value>>
+ template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value> >
_LIBCPP_INLINE_VISIBILITY
basic_string(_InputIterator __first, _InputIterator __last);
- template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value>>
+ template<class _InputIterator, class = _EnableIf<__is_cpp17_input_iterator<_InputIterator>::value> >
_LIBCPP_INLINE_VISIBILITY
basic_string(_InputIterator __first, _InputIterator __last, const allocator_type& __a);
#ifndef _LIBCPP_CXX03_LANG
More information about the libcxx-commits
mailing list