Category Archives: C++

C++ programming language related

C++ 14 – co-routine with boost library

It is worth to read the following blog if interested in C++ co-routine support. https://blogs.msdn.microsoft.com/vcblog/2017/05/19/using-c-coroutines-with-boost-c-libraries/

Posted in C++, Programming | Leave a comment

C++ – Measuring execution time library in function level

Interesting tool on measuring the execution time of C++ application in function level. https://github.com/namhyung/uftrace

Posted in C++, Programming | Leave a comment

C++ – Transforming C asynchronous function to C++ future

C API definition to read data from a file in asynchronous way. C++ implementation by using future

Posted in C++, Programming | Leave a comment

C++ – Functional programming

Functional programming with C++ https://vittorioromeo.info/index/blog/cpp17_curry.html

Posted in C++, Programming | Leave a comment

C++ – Anonymous namespace

The main reason of using anonymous namespace in C++ is to localize declaration in translation unit. The compiler will choose the unique name for unnamed namespace so that it can guarantee that there are no conflict on using same name … Continue reading

Posted in C++, Programming | Leave a comment

C++ – Exception handling

The following article provides a good way of using Exceptions in C++ Top 15 C++ Exception handling mistakes and how to avoid them.

Posted in C++, Programming | Leave a comment

C++11 – explain SFINAE with example of enable_if

Above code will be only generated by compiler only if the first boolean type is true, if not code generation will not happen due to the rule of SFINAE.

Posted in C++, Programming | Leave a comment