/cpp-try

Scala-like Try for C++

Primary LanguageC++MIT LicenseMIT

cpp-try

Scala-like Try for C++

Usage

Include Try.h in your projects

Example

See example.cpp

Result should be

Division result for not our code, normal case : 1.5
Division result for not our code, exception case :  error Division by zero condition!
Division result for our code, normal case : 1.5
Division result for our code, exception case :  error Division by zero condition!