Archive for August, 2007

‘Developers’ Anagrams !!!

I’m a big fan of anagrams, they are very interesting to me, they are mysterious, funny and sometimes true..

quoting a phrase on my favorite anagram generator site “All the life’s wisdom can be found in anagrams. Anagrams never lie.”

here are a few interesting anagrams for the word developers:

  • Peeve Lords (that’s us for the customers)
  • Deep Solver
  • Speed Lover (for the performance obsessed ones)
  • Deep Lovers

Anagrams are amazing..

The typename Keyword

Indicates that the name following represents a parameterized type placeholder that will be replaced by a user-specified actual type.

consider the following example:
template<class T> class A
{
T::x(y); // ambiguous: calling a function or constructing an object?
// without ‘typename’ this will be interpreted as a function call
typedef char C;
A::C d;
}

The statement A::C d; is ill-formed. The class A also refers to A<T> and thus depends on a template parameter. You must add the keyword typename to the beginning of this declaration:

typename A::C d;

You can also use the keyword typename in place of the keyword class in template parameter declarations.

typename was introduced after the keyword class to solve the problems shown above, but both keywords are equivalent in declaring template parameters.