Pattern matching in C++14