Skip to content
#

cmake

Here are 3,883 public repositories matching this topic...

duncanspumpkin
duncanspumpkin commented Feb 14, 2021

We currently use a macro for writing down a money amount as a literal. We should move to a more modern C++ representation with a user defined literal like the below:

constexpr money32 operator"" _GBP(long double money)
{
    return money * 10;
}

static_assert(MONEY(2, 40) == 2.40_GBP);

Go through the codebase and replace all MONEY macro uses with the equivalent version. You m

warzone2100

Improve this page

Add a description, image, and links to the cmake topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cmake topic, visit your repo's landing page and select "manage topics."

Learn more