/*<- Copyright Barrett Adair 2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) ->*/ //[ replace_args #include #include namespace ct = boost::callable_traits; template struct N {}; int main() { using f = int(&)(N<0>, N<1>, N<2>, N<3>); using test = ct::replace_args_t<2, f, int>; using expect = int(&)(N<0>, N<1>, int, N<3>); static_assert(std::is_same::value, ""); } //]