Boost logo

Boost :

From: Kevlin Henney (Kevlin.Henney_at_[hidden])
Date: 1999-08-03 13:28:11


Beman Dawes wrote:
While the template approach seems conceptually more elegant, I find
the resulting user code unbearably ugly. The typedef and constant
approach is basically stdint.h without the macros, a nice advantange.

   True, but it might be argued that the template approach is in many ways
   consistent w/ the way types are found from templates in the standard
   library.

Kevlin, what did your template approach look like?

     int_exact<32>::type
     int_least<32>::type

Are there other possiblities?

   W/o templated typedefs, I'm not sure.

   Kevlin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk