Skip to content

Commit d03ec02

Browse files
Use typedef pointer for static_cast
1 parent bb5e2f1 commit d03ec02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TiledArray/tensor/tensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class Tensor {
188188
#if EIGEN_HAS_MAJOR_VERSION_5
189189
// Eigen 3.5.x returns nullptr if size=0
190190
auto* ptr = (!size && range_.rank())
191-
? static_cast<allocator_type::pointer>(std::malloc(size))
191+
? static_cast<pointer>(std::malloc(size))
192192
: allocator.allocate(size);
193193
#else
194194
auto* ptr = allocator.allocate(size);

0 commit comments

Comments
 (0)