operator_less_1.cpp 509 B

12345678910111213141516
  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)
  5. #include <boost/logic/tribool.hpp>
  6. int main(int, char*[])
  7. {
  8. using boost::logic::tribool;
  9. tribool f; // false
  10. tribool t(true); // true
  11. return f < t; // expect to see: error: invalid operands to binary expression ('boost::logic::tribool' and 'boost::logic::tribool')
  12. }