aligning_allocator doesn't compile with -std=c++17

Create issue
Issue #4 resolved
Former user created an issue
yato/include/yato/aligning_allocator.h:166:9: error: unknown type name 'pointer'
        pointer allocate(size_type n)
        ^

This is obviously because the typedef for pointer is ifdef'ed out when YATO_CXX17 is defined; but I don't know why pointer should be ifdef'ed out in that case. It's clearly still needed by the code!

Comments (2)

  1. Alexey Gruzdev repo owner

    Hi! Thank you for reporting the bug. Though the pointer typedef really needs to be disabled in c++17 according to STL. In order to get various allocator traits please use the std::allocator_traits class.

  2. Log in to comment