File tree Expand file tree Collapse file tree
include/chaiscript/dispatchkit Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
2023enum 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
3743std::string hello_world ()
You can’t perform that action at this time.
0 commit comments