"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "7c3e7fedcdfb702a095861c418964e9d1e2c958a"
[INVOKE] C++11 backport of std::invoke, std::invoke_result, std:apply and...
[INVOKE] C++11 backport of std::invoke, std::invoke_result, std:apply and std::make_from_tuple (#2450)
* added backport of std::invoke, std::invoke_result and std::apply
* added backport of std::invoke, std::invoke_result and std::apply
* msvc doesn't like keyword 'not'
* i think this fixes detection of invoke on MSVC
* ok, i think detection of invoke stuff is fixed on windows
* - just have dlib's own implementation and don't use standard library even if c++17 is enabled.
- added tests for dlib::invoke_result_t
* added docs
* - added dlib::make_from_tuple
- added tests + docs
* - make sure you use the dlib:: namespace. Otherwise, when compiling with C++17, compiler might get confused
- use remove_reference instead of decay. That's what the standard says to use
* added dlib::is_invocable
* - defined invoke_traits. This removes dupplicate code.
- This makes absolutely no difference but is just a tiny bit nicer.
* removed the test that could potentially fail with MSVC
Co-authored-by:
pfeatherstone <peter@me>
Showing
dlib/invoke.h
0 → 100644
dlib/test/invoke.cpp
0 → 100644
dlib/utility.h
0 → 100644
Please register or sign in to comment