In the past I've sometimes used standard C++ local structs to nest functions. E.g.:
int f()
{
struct local {
static int nested_func()
{
return 123;
}
};
return local::nested_func();
}