According to this:
Rules for Naming A Variable
- A variable name can't be a C++ keyword. For example, int can't be a variable name as it is a C++ keyword.
- A variable name must start with an alphabet (A-Z and a-z) or underscore ( _ ) sign. For example, var, X, _name, etc. are valid variable names, but 1a, $age, etc. are invalid variable names.
- Variable names can have alphabet (A-Z and a-z), underscore ( _ ), digits (0-9), but they can't have other symbols, such as %, &, @ , etc. For example, a_01 and findSum are valid variable names, but name& and calc% are not allowed in C++.
So to answer your question:
Is it somehow possible to program in C++ using characters from the Nordic alphabet in class- and variable names? (specifically: æ, ø and å).
It's not portable, because the standard doesn't allow it; of course it's up to the individual compiler to allow it anyway. What often does work is using a macro instead, like this:
#define føø my_foo
And then later do
auto føø = 2;