errinfo_file_name.hpp 723 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_FEE5120A6C1211DE94E8BC9155D89593
  5. #define UUID_FEE5120A6C1211DE94E8BC9155D89593
  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_name_,std::string> errinfo_file_name;
  19. }
  20. #endif