Write a simple C++ program which have four different functions for basic operations like addition, subtraction, division and multiplication....
Fun with C++14 Lambdas at Silicon Valley Code Camp
Believe it or not, but the 9th Silicon Valley Code Camp is less than 2 weeks away and I can't wait to be at the largest software techno...
Short-circuiting overloaded && and || using expression templates
This blog post is just a quick note that C++ offers (at least) two distinct ways to represent lazy computation that is lexically in the sam...
Fun with Lambdas: C++14 Style (part 3)
Now that we have C++14 , it has opened up doors for truly mind-bending uses of lambdas--more specifically--generic lambdas. This blog post i...
Using The Pigeonhole Principle in C++ Metaprogramming
The Pigeonhole Principle is one of the most obvious fundamentals in mathematics. It is so obvious that you may be surprised that there is e...
A tale of noexcept swap for user-defined classes in C++11
C++11 has taken another stab at function exception specifications for the masses. The shiny new ‘noexcept’ keyword is phasing out its zombie...
Fun with Lambdas: C++14 Style (part 2)
Look at some interesting examples of C++11/14 lambdas and how they interact with other language features and libraries. I hope to find some ...
Why we need compile-time reflection in C++1y
Programs need data. That's a no brainer. Programs are only as good as the data you provide them. Based on what kind of data is consumed,...
Fun with Lambdas: C++14 Style (part 1)
It's common knowledge that Functional Programming is spreading like a wildfire in mainstream languages. Latest promoted languages: Java ...
Fun with Lambdas: C++14 Style
I am presenting at the SF Bay Area Association of C/C++ Users (ACCU) meetup on Wed, Mar 12th. Topic: Fun with Lambdas: C++14 Style. Slides...