From 9f62d67135844f82d27757d6d31abb3d56c88231 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 30 May 2021 22:19:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20?= =?UTF-8?q?=D1=81=20=D1=82=D0=B8=D0=BF=D0=BE=D0=BC=20void=5Ft=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=81=D1=82=D0=B0=D0=BD=D0=B4=D0=B0=D1=80=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=BD=D0=BE=D0=B2=D0=B5=D0=B5=2017?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + src/myx/backports/cpp/helpers.hpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 561029e..ed73e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ endif() include(CMLibCommon) +#cmlib_set_cxx_standard(11) option(MYXLIB_BUILD_EXAMPLES "Build examples" OFF) # Поиск библиотек с помощью pkgconfig diff --git a/src/myx/backports/cpp/helpers.hpp b/src/myx/backports/cpp/helpers.hpp index 3f6b1c0..71d0c56 100644 --- a/src/myx/backports/cpp/helpers.hpp +++ b/src/myx/backports/cpp/helpers.hpp @@ -34,7 +34,10 @@ namespace std { 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; +#endif } // namespace std