mute an MSVC warning
This commit is contained in:
parent
d83fee75e9
commit
cfaee92e74
1 changed files with 9 additions and 0 deletions
|
@ -93,7 +93,16 @@ inline boost::shared_ptr<std::string> lua_object<std::string>::to_type(lua_State
|
|||
template <>
|
||||
inline boost::shared_ptr<bool> lua_object<bool>::to_type(lua_State *L, int n)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable : 4800)
|
||||
#endif
|
||||
|
||||
return boost::shared_ptr<bool>(new bool(lua_toboolean(L, n)));
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
Loading…
Add table
Reference in a new issue