The library frees users from manual memory management and has an easy API with
inline operators similar to the one in Python's decimal module. Like Python's
decimal module, libmpdec++ has a thread local context for inline operators and
other functions that use the implicit context.
Depending on the compiler, the speed penalty for the C++ features compared
to libmpdec is 4-10%.
The best compiler I found is gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1), closely
followed by the latest Intel compiler. Both produce the fastest libmpdec code
and have a speed penalty for C++ of 4%.
Like libmpdec, libmpdec++ has a large test suite. In addition to the mpdecimal
tests, libmpdec++ has been tested by replacing all libmpdec functions in Python's
decimal module with libmpdec++ functions.
libmpdec++ passes both the Python test suite and deccheck.py.