Исправлена работа с типом void_t для стандартов новее 17

This commit is contained in:
Andrei Astafev 2021-05-30 22:19:03 +03:00
parent d1fbeb9400
commit 9f62d67135
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ endif()
include(CMLibCommon) include(CMLibCommon)
#cmlib_set_cxx_standard(11)
option(MYXLIB_BUILD_EXAMPLES "Build examples" OFF) option(MYXLIB_BUILD_EXAMPLES "Build examples" OFF)
# Поиск библиотек с помощью pkgconfig # Поиск библиотек с помощью pkgconfig

View File

@ -34,7 +34,10 @@ namespace std
{ {
template< typename ... Ts > struct make_void { typedef void type; }; template< typename ... Ts > struct make_void { typedef void type; };
#ifndef __cpp_lib_void_t
template< typename ... Ts > using void_t = typename make_void< Ts... >::type; template< typename ... Ts > using void_t = typename make_void< Ts... >::type;
#endif
} // namespace std } // namespace std