mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
fix a couple of g++s -Wnoexcept warnings
This commit is contained in:
parent
19929be684
commit
e8e47173fb
@ -201,7 +201,7 @@ namespace chaiscript
|
||||
m_engine.add(fun([this](const Boxed_Value &t_bv, const std::string &t_name){ set_global(t_bv, t_name); }), "set_global");
|
||||
|
||||
// why this unused parameter to Namespace?
|
||||
m_engine.add(fun([this](const std::string& t_namespace_name) { register_namespace([](Namespace& /*space*/) {}, t_namespace_name); import(t_namespace_name); }), "namespace");
|
||||
m_engine.add(fun([this](const std::string& t_namespace_name) { register_namespace([] (Namespace& /*space*/) noexcept {}, t_namespace_name); import(t_namespace_name); }), "namespace");
|
||||
m_engine.add(fun([this](const std::string& t_namespace_name) { import(t_namespace_name); }), "import");
|
||||
}
|
||||
|
||||
|
||||
@ -795,7 +795,7 @@ struct Object_Lifetime_Vector2
|
||||
{
|
||||
Object_Lifetime_Vector2() : x(0), y(0) {}
|
||||
Object_Lifetime_Vector2(T px, T py) : x(px), y(py) {}
|
||||
Object_Lifetime_Vector2(const Object_Lifetime_Vector2& cp) : x(cp.x), y(cp.y) {}
|
||||
Object_Lifetime_Vector2(const Object_Lifetime_Vector2& cp) noexcept : x(cp.x), y(cp.y) {}
|
||||
|
||||
Object_Lifetime_Vector2& operator+=(const Object_Lifetime_Vector2& vec_r)
|
||||
{
|
||||
|
||||
@ -2,9 +2,7 @@
|
||||
|
||||
#include "multifile_test_module.hpp"
|
||||
|
||||
Multi_Test_Module::Multi_Test_Module()
|
||||
{
|
||||
}
|
||||
Multi_Test_Module::Multi_Test_Module() noexcept = default;
|
||||
|
||||
int Multi_Test_Module::get_module_value()
|
||||
{
|
||||
|
||||
@ -5,7 +5,7 @@ class Multi_Test_Module
|
||||
public:
|
||||
static int get_module_value();
|
||||
|
||||
Multi_Test_Module();
|
||||
Multi_Test_Module() noexcept;
|
||||
|
||||
chaiscript::ModulePtr get_module();
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user