修复G++
This commit is contained in:
@@ -32,7 +32,7 @@ void module::response::set(const std::string& name, const std::string& value)
|
|||||||
m_sets[name] = value;
|
m_sets[name] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void module::response::sets(sol::table& lua_table)
|
void module::response::sets(const sol::table& lua_table)
|
||||||
{
|
{
|
||||||
auto parse_lua_table = [](const sol::table& table, const auto& self) -> std::map<std::string, std::string> {
|
auto parse_lua_table = [](const sol::table& table, const auto& self) -> std::map<std::string, std::string> {
|
||||||
std::map<std::string, std::string> result;
|
std::map<std::string, std::string> result;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace module
|
|||||||
void header(const std::string& name, const std::string& value);
|
void header(const std::string& name, const std::string& value);
|
||||||
|
|
||||||
void set(const std::string& name,const std::string& value);
|
void set(const std::string& name,const std::string& value);
|
||||||
void sets(sol::table& lua_table);
|
void sets(const sol::table& lua_table);
|
||||||
static void regist(sol::state* lua);
|
static void regist(sol::state* lua);
|
||||||
private:
|
private:
|
||||||
network::http::response* m_response = nullptr;
|
network::http::response* m_response = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user