Suppose I use std::enable_if, if constexpr, ... to guard the usage of some template functions, classes, ... The main goal is to give compile errors when the template arguments provided are not supported.
Does anyone has a solution to incorporate some construction that 'should not compile' into an automatic test system?
Aucun commentaire:
Enregistrer un commentaire