]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/example/has_void_return.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / callable_traits / example / has_void_return.cpp
1 /*<-
2 Copyright (c) 2016 Barrett Adair
3
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)
6 ->*/
7
8 //[ has_void_return
9 #include <type_traits>
10 #include <boost/callable_traits/has_void_return.hpp>
11
12 namespace ct = boost::callable_traits;
13
14 static_assert(ct::has_void_return<void()>::value, "");
15 static_assert(!ct::has_void_return<int()>::value, "");
16
17 int main() {}
18 //]