We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb5e2f1 commit d03ec02Copy full SHA for d03ec02
1 file changed
src/TiledArray/tensor/tensor.h
@@ -188,7 +188,7 @@ class Tensor {
188
#if EIGEN_HAS_MAJOR_VERSION_5
189
// Eigen 3.5.x returns nullptr if size=0
190
auto* ptr = (!size && range_.rank())
191
- ? static_cast<allocator_type::pointer>(std::malloc(size))
+ ? static_cast<pointer>(std::malloc(size))
192
: allocator.allocate(size);
193
#else
194
auto* ptr = allocator.allocate(size);
0 commit comments