]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/example/has_varargs.cpp
2 Copyright (c) 2016 Barrett Adair
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
8 #ifdef BOOST_CLBL_TRTS_MSVC
9 // MSVC requires __cdecl for varargs, and I don't want to clutter the example
14 #include <type_traits>
15 #include <boost/callable_traits/has_varargs.hpp>
17 namespace ct
= boost::callable_traits
;
19 static_assert(ct::has_varargs
<int(...)>::value
, "");
20 static_assert(!ct::has_varargs
<int()>::value
, "");