Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-09-01 10:43:38


Yet one more code comment:

  I was reading C&E's book "Generative Programming" last night and came
across this gem:

   if<condition, class_name1::type, class_name2::type>::type

They suggested to always write this as

   if<condition, class_name1, class_name2>::type::type

because in the first case, there will be an instantiation of both
class_name1 and class_name2, in the second, only the on for which the
condition tests true will be instantiated.

  I saw some of #1 usage in adjacency_list.cct but I didn't search the whole
project for it.

  Yours Truly,



Boost list run by bdawes at, gregod at, cpdaniel at, john at