Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Blog 

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, 2 years ago




Please log in to post a comment.
123
Advertise here.