>null will always trigger access violation..
No, it won't. https://gcc.godbolt.org/z/Mz8sqKvad
Oh my bad, I read that as nullptr, I use a custom optional that does not support such a silly mode as "disengaged"
Oh my bad, I read that as nullptr, I use a custom optional that does not support such a silly mode as "disengaged"