asio icon indicating copy to clipboard operation
asio copied to clipboard

error: ‘aligned_alloc’ is not a member of ‘std’

Open terrywh opened this issue 3 years ago • 1 comments

i got this error with boost/1.77, gcc 7.3.1; i did some digging and found: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662

but I can't upgrade compiler due to company policy; is there any way 'elegant' to bypass this ? or will there be any update or fix ?

terrywh avatar Dec 03 '21 08:12 terrywh

I am facing the same issue. I think defining BOOST_ASIO_DISABLE_STD_ALIGNED_ALLOC can be used as a workaround.

Tradias avatar Jun 30 '22 09:06 Tradias

boost v1.80 : Fixed detection of std::aligned_alloc for older Apple platforms. is this relevent ?

terrywh avatar Nov 09 '22 06:11 terrywh