Skip to content

Commit

Permalink
Compile fix for VS2022 17.8.0+ (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rh101 committed Mar 12, 2024
1 parent c0d7281 commit 73a7a7b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ntcvt/ntcvt.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// v1.0 works on vs2010 or later
// v1.0.1 add vs2022 17.8.0 support
// v1.0.0 works on vs2010 to vs2022 17.7.x

#ifndef SIMDSOFT__NTCVT_HPP
#define SIMDSOFT__NTCVT_HPP

Expand Down Expand Up @@ -33,7 +35,12 @@ class intrusive_string : public std::basic_string<_Elem, _Traits, _Alloc>
std::_String_iter_types<
_Elem, typename _Alty_traits::size_type,
typename _Alty_traits::difference_type, typename _Alty_traits::pointer,
# if _MSC_VER < 1938
typename _Alty_traits::const_pointer, _Elem&, const _Elem&>>>;
# else // VS2022 17.8.0+
typename _Alty_traits::const_pointer>>>;
# endif

#endif
// See also afxmfc CString::GetBufferSetLength
// Why do this hack?
Expand Down

0 comments on commit 73a7a7b

Please sign in to comment.