Skip to content

Commit 9cf5064

Browse files
committed
Merge branch 'master' into ChaiScript_5_0_CPP_11
Conflicts: include/chaiscript/dispatchkit/bootstrap.hpp include/chaiscript/dispatchkit/proxy_functions_detail.hpp src/reflection.cpp
2 parents 20b40d3 + af44da9 commit 9cf5064

5 files changed

Lines changed: 22 additions & 3 deletions

File tree

include/chaiscript/dispatchkit/bootstrap.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ namespace chaiscript
275275
auto pf = std::dynamic_pointer_cast<const dispatch::Dynamic_Proxy_Function>(t_pf);
276276
if (pf)
277277
{
278-
return bool(pf->get_guard());
278+
if (pf->get_guard()) {
279+
return true;
280+
} else {
281+
return false;
282+
}
279283
} else {
280284
return false;
281285
}

include/chaiscript/dispatchkit/proxy_functions_detail.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ namespace chaiscript
107107

108108

109109

110+
#ifdef BOOST_MSVC
111+
#pragma warning(pop)
112+
#endif
113+
110114
/**
111115
* Used by Proxy_Function_Impl to determine if it is equivalent to another
112116
* Proxy_Function_Impl object. This function is primarly used to prevent

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ std::string default_search_path()
6767
return "";
6868
}
6969

70-
7170
#else
71+
7272
std::string exepath;
7373

7474
std::vector<char> buf(2048);

src/reflection.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ bool has_parse_tree(const chaiscript::Const_Proxy_Function &t_pf)
2626
= std::dynamic_pointer_cast<const chaiscript::dispatch::Dynamic_Proxy_Function>(t_pf);
2727
if (pf)
2828
{
29-
return bool(pf->get_parse_tree());
29+
if (pf->get_parse_tree())
30+
{
31+
return true;
32+
} else {
33+
return false;
34+
}
3035
} else {
3136
return false;
3237
}

src/test_module.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class TestBaseType
1515

1616
int val;
1717
const int const_val;
18+
19+
private:
20+
TestBaseType &operator=(const TestBaseType &);
1821
};
1922

2023
enum TestEnum
@@ -32,6 +35,9 @@ class TestDerivedType : public TestBaseType
3235
public:
3336
virtual ~TestDerivedType() {}
3437
virtual int func() { return 1; }
38+
39+
private:
40+
TestDerivedType &operator=(const TestDerivedType &);
3541
};
3642

3743
std::string hello_world()

0 commit comments

Comments
 (0)