chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.73k stars 1.2k forks source link

How Enable c++20 ? missing '-std=c++20' for g++12 or newer #1339

Closed danieagle closed 11 months ago

danieagle commented 11 months ago

Hi! First, Very Very Very Thanks for all versions of ASIO.

context: default g++ (12+ 13+) is -std=c++17 because this, the configure always fail in detect c++20 (-std=c++20)

I made a test: CXXFLAGS="-std=c++20 $CXXFLAGS" ./configure --prefix=/usr/local with it is possible detect c++20 but i don´t known the extend.

I'm a newbee in autoconf and automake but I can help test the fix

BestWhishes, Gratefull, Dani.

system: Ubuntu 23.10 AMD64 g++13.2 automake-1:1.16.5-1.3 autoconf-2.71-3

Very Very Thanks!!

danieagle commented 11 months ago

Hi! Thanks! this already resolved. Enjoy!!