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

patch by Mike Rovner: work around gcc 3.3.1 bug (http://gcc.gnu.org/PR12163)

[SVN r20672]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2003-11-05 00:30:46 +00:00
parent c760cf8418
commit 1fee0da689

View File

@@ -75,7 +75,13 @@ namespace
// Get the location in which to construct
void* storage = ((rvalue_from_python_storage<T>*)data)->storage.bytes;
#if defined(__GNUC__) && \
(__GNUC__ == 3 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ == 1)
new (storage) T(SlotPolicy::extract(intermediate.get()));
#else
new (storage) T(static_cast<T>(SlotPolicy::extract(intermediate.get())));
#endif
// record successful construction
data->convertible = storage;