In C++, I think it's not allowed to use non-static member variable in static method. However, what does this syntax mean? It compiles and runs.
class Bar {
public:
static void print() {
// What does &Bar::val_ mean???
cout << &Bar::val_ << endl;
}
private:
int val_ = 123;
};
int main()
{
Bar::print();
return 0;
}