Multi-Dimensional Analog Literals in C++ (2006)

Multi-Dimensional Analog Literals in C++ (2006)

If so, use an analog integer literal instead:

// Due to the way C++ operators work, we must use N*2+1 dashes between the ‘s to get a value of N:

// These one-dimensional analog literals are of type , which is convertible to unsigned int. // In some cases, two-dimensional analog literals are appropriate:

// Two-dimensional analog literals are of type which exposes static member constants , , and . We can use three-dimensional analog literals, too:

// Three-dimensional analog literals are of type which exposes static member constants , , , and .

Source: www.eelis.net