Fix build for g++ without optimalization flags 76/43376/2
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 7 Jul 2015 10:58:49 +0000 (12:58 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Mon, 13 Jul 2015 11:56:47 +0000 (04:56 -0700)
commit6b6b50924af3ebd1f37e25ae4eb5e0de3b6d06ba
tree7c74472c9506ae19416a310c06d0400b0d22562a
parentdb0dab00de546ac9a7606b623873ee64cefa62e6
Fix build for g++ without optimalization flags

The problem is that value static field was supposed to be inlined
but it is not. It appears to work only for optimalization flags
 with g++.

Full explanation link:
 - http://stackoverflow.com/questions/8016780/undefined-reference-to-static-constexpr-char

In following code value field appears to be "odr-used" in context
of ostream operator<<. Conversion lvalue-to-rvalue should be
"immediately applied" in LOG marco. Therefore this commit adds
construction of std::string which has implicit constructor of const char*.

Change-Id: I2f8c9c57b14d9f7c6a7581dd5c8aab07f699d04b
src/common/utils/logging.h