std::source_location as non type template parameter
问题 In my infinite quest to push limits of what can be used as non type template parameter I was trying to see if I can use std::source_location as non type template parameter. That failed with a weird message, since I presume source_location is some magical struct... type 'std::experimental::source_location' of non-type template parameter is not a structural type It failed, so I tried to workaround that with using .file_name, but that also fails (godbolt). note: candidate template ignored: