mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: add missing include file and specifiers
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#define TOML11_EXCEPTION_HPP
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include "source_location.hpp"
|
||||
|
||||
@@ -17,7 +18,8 @@ struct file_io_error : public std::runtime_error
|
||||
: std::runtime_error(msg + " \"" + fname + "\": " + std::strerror(errnum)),
|
||||
errno_(errnum)
|
||||
{}
|
||||
int get_errno() {return errno_;}
|
||||
int get_errno() const noexcept {return errno_;}
|
||||
|
||||
private:
|
||||
int errno_;
|
||||
};
|
||||
|
Reference in New Issue
Block a user