[GCC4.7] Bugfix strings concatenation

Since GCC 4.7, the concatentation of strings requires a space among the
two substrings. This is a C standard requirements, which however was
not forced by preious versions of the compiler. This patch bugfixes this
issue by adding a proper space when concatenation is in use.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Reneme to std::chrono::steady_clock

The Standard Release for C++11 update the "monotonic_clock" to be named
"steady_clock":
http://stackoverflow.com/questions/6777278
This patch updates all the call-places to match the new name.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Add std::chrono::steady_clock wrapper

The std::chrono::stead_clock has replaced the definition of
std::chrono::monotonic_clock since GCC version 4.7.
This patch adds a fall-back wrapper to the old definition when compiling
with a pre-4.7 GCC.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Make use of the new -std=c++11 flag

Following the C++11 standard release, GCC 4.7 has updated the extension
enabling flag to be c++11 instead of the old used c++0x.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Bugfix missing virtual destructors

Since GCC 4.7, derived classes without a virtual dtor produce a warning
at compile time. Thus, event if we don't actually need this feature,
this patch add an empty virtual dtor in order to have a clean compilation.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Add sdt::future_status wrapper

The std::future_status value has been supported only since GCC 4.7,
which provides the final C++11 standard. This patch provides a
wrapper for those still using GCC 4.6.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Define C++11 flag based on GCC version

Only since GCC 4.7 the C++11 flag has been defined to be "c++11".
Older compiler still need to use the "c++0x" version.

This patch exploits the GCC_TAG which is required to be defined by the
CMAKE_COMMON_OPTION.  Moreover, the GCC_VERSION string defined by the
same CMake variable is reported on the compilation command line.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Use std::future_status wrapper

This make use of the wrappers defined by the compatibility header file
which provide the proper type based on the version of the GCC compiler
in use.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[GCC4.7] Add static_cast to avoid warning

A static cast to a signed type should be safe. Let's keep this in order
to clean up compilation warning. A better refactoring of RPC messages
headers should be scheduled.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[Android] Use common definition for the C++11 flag

The common definition of the CXX flags already provide the proper
value for the C++11 enabling flag, which is configured based on the
GCC compiler version in use.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[Barbeque] Log GCC compiler version at startup

The GCC version could be conveniently used to report bugs, thus it is
logged at daemon startup time.

Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[AS-RTM] Operating Point operators

Copy constructor, operators =, ==, and != added to Operating Point class.

Signed-off-by: Edoardo Paone <paone@elet.polimi.it>
Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[AS-RTM] Bugfix Nap range

The Goal Gap must be represented as an integer percentage,
i.e. an integer number in the range (0,100].

Signed-off-by: Edoardo Paone <paone@elet.polimi.it>
Signed-off-by: Patrick Bellasi <derkling@gmail.com>
[AS-RTM] Detailed description of switchThreashold

The comments now explain in detail how the switchThreshold
parameter is used.

Signed-off-by: Edoardo Paone <paone@elet.polimi.it>
Signed-off-by: Patrick Bellasi <derkling@gmail.com>