documentation, bug fixes

This commit is contained in:
badair
2016-04-09 17:23:12 -05:00
parent 3451ec76e1
commit 757bbe5830
29 changed files with 1042 additions and 494 deletions

View File

@@ -13,7 +13,7 @@ namespace example_library {
namespace ct = callable_traits;
//make_function turns a non-overloaded callable into a type-erased std::function object
// make_function turns a non-overloaded callable into a type-erased std::function object
template<typename T>
inline decltype(auto) make_function(T&& t) {
@@ -25,11 +25,11 @@ namespace example_library {
return result_type{ std::forward<T>(t) };
}
//this make_function overload turns a bind expression into a type-erased std::function object
// this make_function overload turns a bind expression into a type-erased std::function object
template<typename T, typename First, typename... Others>
inline decltype(auto) make_function(T&& t, First&& first, Others&&... others) {
// callable_traits::bind is essentially a compile-time parser of placeholders
// callable_traits::bind is essentially a compile-time parser of placeholder
// expressions, for the purpose of retaining more type information than
// std::bind normally allows - specifically, callable_traits::bind is used to
// determine the de-facto signature of the std::bind return type, with special