Hi,
I have two simple questions:
1) Do I have to write storage-class-specifier, when I want to declare a
class as friend:
class Bar {};
class Foo { friend ??? Bar; };
VC++8 doesn't complain about it, g++ 3.4.4 throws an error and I can't
find anything about it in c++'98 standart.
2)
#include <iostream>
class Foo {
public: void print() { std::cout << "smth" << std::endl; }
};
int main() {
Foo* f = NULL;
f->print();
}
Works fine under g++ 3.4.4 and vc++8. As I understand this is undefined
behavior?
--
KriS