Kaynağa Gözat

WIP: invoke c++17 rework

master
ebeveyn
işleme
d712294190
3 değiştirilmiş dosya ile 11 ekleme ve 7 silme
  1. +1
    -1
      include/utl/meta/typelist.h
  2. +5
    -4
      include/utl/utility/invoke.h
  3. +5
    -2
      test/main.cpp

+ 1
- 1
include/utl/meta/typelist.h Dosyayı Görüntüle

@@ -265,7 +265,7 @@ namespace meta {
//! @{ //! @{
namespace back_impl { namespace back_impl {
template <typename List> template <typename List>
struct back_ { };
struct back_ { using type = nil_; };
template <typename Head, typename... Tail> template <typename Head, typename... Tail>
struct back_<typelist<Head, Tail...>> { struct back_<typelist<Head, Tail...>> {


+ 5
- 4
include/utl/utility/invoke.h Dosyayı Görüntüle

@@ -21,7 +21,7 @@
//! @{ //! @{
namespace utl { namespace utl {
#if !defined __cpp_lib_is_invocable
//#if !defined __cpp_lib_is_invocable
namespace detail { namespace detail {
template <class T> template <class T>
@@ -216,9 +216,10 @@ namespace utl {
>; >;
//! @} //! @}
#else
#endif
//#else
//using is_invocable = std::is_invocable;
//
//#endif
} }
//! @} //! @}


+ 5
- 2
test/main.cpp Dosyayı Görüntüle

@@ -19,11 +19,14 @@
* *
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <exception>
GTEST_API_ int main(int argc, char **argv) {
GTEST_API_ int main(int argc, char **argv) try {
testing::InitGoogleTest(&argc, argv); testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
catch (std::exception& e) {
std::cout << "Exception: " << e.what() << '\n';
}

Yükleniyor…
İptal
Kaydet