Relative Content

Tag Archive for c++templatesgccclangmsvc12

Why this template example compiles using MSVC and Clang but not gcc

I was working on a CRTP based implementation. My solution needs to support all environments, therefore all compilers. The example below is not my real implementation, but gives you an idea of what I was facing. Please see the compiler explorer link for your discretion https://compiler-explorer.com/z/jfjha6c4s

Why this template example compiles using MSVC and Clang but not gcc

I was working on a CRTP based implementation. My solution needs to support all environments, therefore all compilers. The example below is not my real implementation, but gives you an idea of what I was facing. Please see the compiler explorer link for your discretion https://compiler-explorer.com/z/jfjha6c4s