lib1_throw.hpp 656 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef LIB1_THROW_HPP_INCLUDED
  2. #define LIB1_THROW_HPP_INCLUDED
  3. // Copyright 2018 Peter Dimov
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. //
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. #include <boost/config.hpp>
  10. #include <exception>
  11. #if defined(LIB1_DYN_LINK)
  12. # if defined(LIB1_SOURCE)
  13. # define LIB1_DECL BOOST_SYMBOL_EXPORT
  14. # else
  15. # define LIB1_DECL BOOST_SYMBOL_IMPORT
  16. # endif
  17. #else
  18. # define LIB1_DECL
  19. #endif
  20. namespace lib1
  21. {
  22. struct BOOST_SYMBOL_VISIBLE exception: public std::exception
  23. {
  24. };
  25. LIB1_DECL void f();
  26. } // namespace lib1
  27. #endif // #ifndef LIB1_THROW_HPP_INCLUDED