]> git.tdb.fi Git - libs/core.git/blob - source/core/unix/systemerror.cpp
Avoid leaking external references through default c'tors and d'tors
[libs/core.git] / source / core / unix / systemerror.cpp
1 #include <cerrno>
2 #include <cstring>
3 #include "systemerror.h"
4
5 using namespace std;
6
7 namespace Msp {
8
9 string system_error::get_message(int c)
10 {
11         if(c==-1)
12                 c = errno;
13
14         return strerror(c);
15 }
16
17 } // namespace Msp