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

Functions

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

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;