olliNiinivaara / GuildenStern

Modular multithreading HTTP/1.1 + WebSocket server framework
MIT License
80 stars 7 forks source link

Move flags into templates #26

Closed ire4ever1190 closed 1 month ago

ire4ever1190 commented 1 month ago

image

On some POSIX systems MSG_NOSIGNAL (And possible other constants) isn't given a variable at compile time so it can't be used in a constant. This replaces the consts with templates so it retains the same semantics but can now compile on systems like ARM.

Unblocks this comment here https://github.com/the-benchmarker/web-frameworks/pull/7653#issuecomment-2254612146