Posts tagged with c++

C++ template functions and header files

“The implementation of a non-specialized template must be visible to a translation unit that uses it. The compiler must be able to see the implementation in ...

C++ stdlib manpages

In order to look at the C++ man pages, do a man std_<blah>. For example, man std_list or man std_complex. To see what man pages are available, do an ap...

Friendship is not inherited

Friendship is not inherited. class A { friend class B; }; class B { }; class C : public B { }; => C cannot access private and protected members of A!