2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

more bug fixes for really conformant compilers

[SVN r12682]
This commit is contained in:
Dave Abrahams
2002-02-04 01:58:08 +00:00
parent 47c7748707
commit 80f697ef2a
2 changed files with 6 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ namespace boost { namespace python {
template <typename T, class Derived>
struct value_from_python
{
typedef value_from_python<T,Derived> self;
typedef converter::from_python_check from_python_check;
value_from_python(from_python_check convertible)
@@ -50,13 +51,13 @@ struct value_from_python
// Mark successful construction
static void constructed(converter::from_python_data& data)
{
data.stage1 = get_storage(data);
data.stage1 = self::get_storage(data);
}
inline static void destroy(converter::from_python_data& data)
{
// Get the location of the storage for
void* storage = get_storage(data);
void* storage = self::get_storage(data);
// Check for successful construction
if (data.stage1 == storage)

View File

@@ -91,7 +91,8 @@ namespace
: value_from_python<T, tp_cref_from_python<T,Convertible,TExtract> >
{
private:
typedef value_from_python<T, tp_cref_from_python<T,Convertible,TExtract> > base;
typedef tp_cref_from_python<T,Convertible,TExtract> self;
typedef value_from_python<T,tp_cref_from_python<T,Convertible,TExtract> > base;
public:
tp_cref_from_python()
@@ -102,7 +103,7 @@ namespace
{
unaryfunc converter = *(unaryfunc*)data.stage1;
void* storage = get_storage(data);
void* storage = self::get_storage(data);
ref converted(converter(obj));