]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/callable_traits/example/has_varargs.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / callable_traits / example / has_varargs.cpp
CommitLineData
b32b8144
FG
1/*<-
2Copyright (c) 2016 Barrett Adair
3
4Distributed under the Boost Software License, Version 1.0.
5(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
6->*/
7
8#ifdef BOOST_CLBL_TRTS_MSVC
9// MSVC requires __cdecl for varargs, and I don't want to clutter the example
10int main(){}
11#else
12
13//[ has_varargs
14#include <type_traits>
15#include <boost/callable_traits/has_varargs.hpp>
16
17namespace ct = boost::callable_traits;
18
19static_assert(ct::has_varargs<int(...)>::value, "");
20static_assert(!ct::has_varargs<int()>::value, "");
21
22int main() {}
23//]
24#endif