2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

bool param for setTrace, avoids MSVC conversion performance warning at /W3

[SVN r20366]
This commit is contained in:
Raoul Gough
2003-10-14 00:01:27 +00:00
parent 1ddd2b800d
commit 62a213fbbe

View File

@@ -38,7 +38,7 @@ struct IntWrapper {
inline operator boost::shared_ptr<IntWrapper> () const;
inline static void setTrace (int onoff);
inline static void setTrace (bool onoff);
};
inline bool operator== (IntWrapper const &lhs, IntWrapper const &rhs);
@@ -134,7 +134,7 @@ IntWrapper::operator boost::shared_ptr<IntWrapper> () const
return boost::shared_ptr<IntWrapper> (new IntWrapper (*this));
}
void IntWrapper::setTrace (int onoff)
void IntWrapper::setTrace (bool onoff)
{
gIntWrapperTrace = onoff;
}