]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/logic/test/compile-fail/implicit_int_1.cpp
1 // Copyright 2018 James E. King III. Use, modification and
2 // distribution is subject to the Boost Software License, Version
3 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/logic/tribool.hpp>
10 using boost::logic::indeterminate
;
11 using boost::logic::tribool
;
13 tribool
i(indeterminate
);
15 return i
; // expect to see: error: no viable conversion from returned value of type 'boost::logic::tribool' to function return type 'int'