errinfo_file_open_mode.hpp 733 B

123456789101112131415161718192021222324252627
  1. //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef UUID_056F1F266C1311DE8E74299255D89593
  5. #define UUID_056F1F266C1311DE8E74299255D89593
  6. #include <string>
  7. namespace
  8. boost
  9. {
  10. template <class Tag,class T> class error_info;
  11. //Usage hint:
  12. //FILE * f=fopen(name,mode);
  13. //if( !f )
  14. // BOOST_THROW_EXCEPTION(
  15. // file_open_error() <<
  16. // errinfo_file_name(name) <<
  17. // errinfo_file_open_mode(mode) );
  18. typedef error_info<struct errinfo_file_open_mode_,std::string> errinfo_file_open_mode;
  19. }
  20. #endif