Исправлена работа с типом void_t для стандартов новее 17
This commit is contained in:
parent
d1fbeb9400
commit
9f62d67135
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user