Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme 

Integral constant

      
            
                
            
 run  | edit  | history  | help 0

include <type_traits>

constexpr int f(int) { reyurn 0; } int main() { auto lamdba = [](auto x) { constexpr int e = f(x); }; lamdba(std::integral_constant<int, 3>{}); }

  by  dds, 8 months ago




Please log in to post a comment.
fun