Skip to content

Commit

Permalink
Cleaned up one remaining use of HAVE_CXX14 and removed the macro alto…
Browse files Browse the repository at this point in the history
…gether
  • Loading branch information
Vultraz committed Mar 18, 2018
1 parent c1fcba1 commit aa09dec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions src/global.hpp
Expand Up @@ -35,13 +35,10 @@

#define UNUSED(x) ((void)(x)) /* to avoid warnings */

// To allow using some optional C++14 and C++17 features
#if __cplusplus >= 201402L
#define HAVE_CXX14
// To allow using some optional C++17 features
#if __cplusplus >= 201703L
#define HAVE_CXX17
#endif
#endif

// Some C++11 features are not available on all supported platforms
#if defined(_MSC_VER)
Expand Down
5 changes: 0 additions & 5 deletions src/utils/functional.hpp
Expand Up @@ -92,11 +92,6 @@ namespace detail {

template<typename F, typename... P>
auto bind_void(F fcn, P... bindings)
#ifndef HAVE_CXX14
-> decltype(
std::bind(detail::make_apply(std::function<typename detail::function_base<F>::type>(fcn)), bindings...)
)
#endif
{
using T = typename detail::function_base<F>::type;
return std::bind(detail::make_apply(std::function<T>(fcn)), bindings...);
Expand Down

0 comments on commit aa09dec

Please sign in to comment.