Gamedev Framework (gf)  0.4.0
A C++11 framework for 2D games
Functions
gf::literals Namespace Reference

The namespace for literals. More...

Functions

constexpr gf::Id operator""_id (const char *str, std::size_t sz)
 User defined operator for creating compile time ids from strings. More...
 

Detailed Description

The namespace for literals.

Function Documentation

constexpr gf::Id gf::literals::operator""_id ( const char *  str,
std::size_t  sz 
)

User defined operator for creating compile time ids from strings.

To use it, you have to use the gf::literals namespace:

using namespace gf::literals;
Id id = "FooBar"_id;