Ported from Amebis AOsn library to standard C++ Signed-off-by: Simon Rozman <simon@rozman.si>
Signed-off-by: Simon Rozman <simon@rozman.si>