fix operator value_type() to work with enums

[SVN r20262]
This commit is contained in:
Aleksey Gurtovoy
2003-10-06 11:07:24 +00:00
parent 9a289b279b
commit 8ac7e401ed

View File

@@ -79,7 +79,7 @@ struct AUX_WRAPPER_NAME
// functions that return objects of both arithmetic ('int', 'long',
// 'double', etc.) and wrapped integral types (for an example, see
// "mpl/example/power.cpp")
operator AUX_WRAPPER_VALUE_TYPE() const { return this->value; }
operator AUX_WRAPPER_VALUE_TYPE() const { return static_cast<AUX_WRAPPER_VALUE_TYPE>(this->value); }
};
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)