You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this required ignoring a few warnings with pragmas, changing the
parameter type and return types of std::string::find functions to size_t
from int and a new global warning disable on MSVC.
I've managed to avoid global warning disables up to this point in the
code, but I don't see a way around the "decorated name too long (C4503)" warning.
Closes#100
Copy file name to clipboardExpand all lines: include/chaiscript/dispatchkit/proxy_functions_detail.hpp
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -106,11 +106,6 @@ namespace chaiscript
106
106
};
107
107
108
108
109
-
110
-
#ifdef BOOST_MSVC
111
-
#pragma warning(pop)
112
-
#endif
113
-
114
109
/**
115
110
* Used by Proxy_Function_Impl to determine if it is equivalent to another
116
111
* Proxy_Function_Impl object. This function is primarly used to prevent
@@ -144,12 +139,19 @@ namespace chaiscript
144
139
template<typename Ret, typename ... Params>
145
140
structCall_Func<Ret, 0, Params...>
146
141
{
142
+
#ifdef CHAISCRIPT_MSVC
143
+
#pragma warning(push)
144
+
#pragma warning(disable : 4100) /// Disable unreferenced formal parameter warning, which only shows up in MSVC I don't think there's any way around it \todo evaluate this
145
+
#endif
147
146
template<typename ... InnerParams>
148
147
static Ret do_call(const std::function<Ret (Params...)> &f,
0 commit comments