Relative Content

Tag Archive for c++templatesoverridingoverloadingc++-concepts

Order of c++ template arguments affecting compilation

I just encountered a new compilation error in my code after a visual studio update. I have stripped my code down to what I think is a minimal example. I have two templated functions both called pow – the first takes two parameters of any type and calls std::pow with them. The second uses a concept to override the first template such that if the second parameter matches the concept it gets called instead.