expected_compile_12.cpp 526 B

123456789101112131415161718192021222324
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2019. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // For more information read https://github.com/boostorg/rational/issues/26
  6. #include <boost/rational.hpp>
  7. void test(const char* text)
  8. {
  9. (void)text;
  10. }
  11. void test(const boost::rational<int>& rational)
  12. {
  13. (void)rational;
  14. }
  15. int main()
  16. {
  17. test("Some text");
  18. return 0;
  19. }