Closed CarlosNihelton closed 1 year ago
GCC 12.2 is not convinced that dir will never be empty.
dir
Since that's an exceptional situation that seems almost impossible to happen, I'm throwing an exception here.
Fixes https://github.com/foonathan/cppast/issues/160
I didn't like the pragma, so I've just decided to support empty paths. Thanks for the PR, but it was quicker to do it myself :D
GCC 12.2 is not convinced that
dir
will never be empty.Since that's an exceptional situation that seems almost impossible to happen, I'm throwing an exception here.
Fixes https://github.com/foonathan/cppast/issues/160