Boost logo

Boost :

Subject: Re: [boost] Formal review request: static size matrix/vector linear algebra library (Boost) LA
From: DE (satan66613_at_[hidden])
Date: 2010-02-05 10:56:41


looking at traits class specialization i have a question:
is there a reason defining integral constants as following?

  static cont int dim = 42;

i mean if you do not take address of that member a better solution
(imho) is to define an anonymous enum like

  enum {
    dim = 42
  };

or in one line

  enum { dim = 42 };

rather than defining a global object

-- 
Pavel

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