|
Boost Users : |
Subject: Re: [Boost-users] [fusion]simple fusion seq_size fails to compile
From: Pete Bartlett (pete_at_[hidden])
Date: 2010-05-17 09:55:22
>The attached works; however, it just seems a lot of effort for such a
simple task. >Anybody have a simpler way?
Well, as you said the simpler way is to use the size function provided :-).
Also your size implementation is somewhat unsatisfying in the sense that it
uses empty which internally uses the library's size (meta)function. In fact
I think size has to be implemented as a "core" function (i.e. not built up
from other publically available functions) because it is implementation is
necessarily quite different for different types of fusion sequence (e.g.
array and an MPL sequence).
Not an expert,
Pete
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net