mirror of
https://github.com/boostorg/filesystem.git
synced 2026-01-28 19:22:09 +00:00
suppress warnings, add missing thow_exception call (Lars Gullik Bjønnes)
[SVN r21569]
This commit is contained in:
@@ -47,10 +47,10 @@ namespace fs = boost::filesystem;
|
||||
|
||||
namespace
|
||||
{
|
||||
# ifdef BOOST_WINDOWS
|
||||
std::string system_message( int sys_err_code )
|
||||
{
|
||||
std::string str;
|
||||
# ifdef BOOST_WINDOWS
|
||||
LPVOID lpMsgBuf;
|
||||
::FormatMessageA(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||
@@ -68,11 +68,16 @@ namespace
|
||||
while ( str.size()
|
||||
&& (str[str.size()-1] == '\n' || str[str.size()-1] == '\r') )
|
||||
str.erase( str.size()-1 );
|
||||
# else
|
||||
str += std::strerror( errno );
|
||||
# endif
|
||||
return str;
|
||||
}
|
||||
# else
|
||||
std::string system_message( int )
|
||||
{
|
||||
std::string str;
|
||||
str += std::strerror( errno );
|
||||
return str;
|
||||
}
|
||||
# endif
|
||||
|
||||
struct ec_xlate { int sys_ec; fs::error_code ec; };
|
||||
const ec_xlate ec_table[] =
|
||||
|
||||
Reference in New Issue
Block a user