Skip to content

Commit 96cec6b

Browse files
meyeringfacebook-github-bot
authored andcommitted
gloo/common/aligned_allocator.h: switch to the one-arg allocate function, dropping const_pointer reference
Summary: This avoids the following errors: buck-out/v2/gen/fbcode/d5479947763d4841/gloo/common/__common__/headers/gloo/common/aligned_allocator.h:53:38: error: no type named 'const_pointer' in 'std::allocator<void>' Reviewed By: r-barnes Differential Revision: D37416148 fbshipit-source-id: 9dd57b43716046b4d1c6535f2b68360154eb8fda
1 parent 9526df4 commit 96cec6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gloo/common/aligned_allocator.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ class aligned_allocator {
4848
return &r;
4949
}
5050

51-
inline pointer allocate(
52-
size_type sz,
53-
typename std::allocator<void>::const_pointer = 0) {
51+
inline pointer allocate(size_type sz) {
5452
pointer p;
5553
if (posix_memalign(
5654
reinterpret_cast<void**>(&p), ALIGNMENT, sizeof(T) * sz)) {

0 commit comments

Comments
 (0)