Skip to content

Commit 72b066d

Browse files
YairBornfsb4000
andcommitted
<xstring>: Comment why basic_string::_Is_elem_cptr can't be a variable template (microsoft#2980)
Co-authored-by: Igor Zhukov <[email protected]>
1 parent 7bbd3de commit 72b066d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/xstring

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,8 @@ private:
24792479
static constexpr size_t _Memcpy_val_size = sizeof(_Scary_val) - _Memcpy_val_offset;
24802480

24812481
template <class _Iter>
2482+
// TRANSITION, /clr:pure is incompatible with templated static constexpr data members
2483+
// static constexpr bool _Is_elem_cptr =_Is_any_of_v<_Iter, const _Elem* const, _Elem* const, const _Elem*, _Elem*>;
24822484
using _Is_elem_cptr = bool_constant<_Is_any_of_v<_Iter, const _Elem* const, _Elem* const, const _Elem*, _Elem*>>;
24832485

24842486
#if _HAS_CXX17

0 commit comments

Comments
 (0)