Skip to content

Commit 49f56db

Browse files
committed
Explicit long long allocator instantiation
1 parent 368fd65 commit 49f56db

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/xtensor-python/pycontainer.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,18 @@ namespace xt
455455
}
456456
#endif
457457
}
458+
459+
#if defined(__GNUC__) && !defined(__clang__)
460+
namespace workaround
461+
{
462+
// Fixes "undefined symbol" issues
463+
inline void long_long_allocator()
464+
{
465+
std::allocator<long long> a;
466+
std::allocator<unsigned long long> b;
467+
}
468+
}
469+
#endif
458470
}
459471

460472
#endif

0 commit comments

Comments
 (0)