tag_of.cpp 709 B

1234567891011121314151617
  1. /*=============================================================================
  2. Copyright (c) 2018 Louis Dionne
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/fusion/support/tag_of.hpp>
  7. #include <boost/static_assert.hpp>
  8. #include <boost/type_traits/is_same.hpp>
  9. // Make sure tag_of can be used with an incomplete type.
  10. struct incomplete;
  11. typedef boost::fusion::traits::tag_of<incomplete>::type Tag;
  12. BOOST_STATIC_ASSERT((boost::is_same<Tag, boost::fusion::non_fusion_tag>::value));
  13. int main() { }