fix: add missing include file and specifiers

This commit is contained in:
ToruNiina
2022-09-29 20:14:58 +09:00
parent c3a3423fb2
commit c2af975609

View File

@@ -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_;
};