|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-03-30 10:01:13
"Hubert Holin" <Hubert.Holin_at_[hidden]> wrote in message
news:Hubert.Holin-B47483.15195730032004_at_sea.gmane.org...
> Somewhere in the E.U., le 30/03/2004
>
> Bonjour
>
> In article <c49gf6$nt5$1_at_[hidden]>,
> "Jonathan Turkanis" <technews_at_[hidden]> wrote:
>
> > "Hubert Holin" <Hubert.Holin_at_[hidden]> wrote in message
> > news:Hubert.Holin-E6FDD4.17090729032004_at_sea.gmane.org...
> >
> >
> > > My current plans for it (and its siblings) is to
transition
> > from
> > > MWCWPro to XCode (gcc), to add valarray support to the various
> > special
> > > functions (it was on the way, and is locally partially
implemented),
> > and
> > > further on to replace the quaternion/octonion input operators by
> > > something sane, probably based upon Spirit.
> >
> > FYI, Reece Dunne's output formatting library (now slightly
misnamed,
> > since it also handles input) contains facilties for reading and
> > writing boost quaternions and octonions. It is in the sandbox
under
> > outfmt.
> >
> > Jonathan
>
> That looks extremely interesting!
>
> However, I have a feeling (perhaps eroneously, given that I
only
> started to look at it), that the support in outfmt is there only for
the
> simplest variants of quaternion and octonion inputs. I was under the
> impression that a full-fledged parser was needed to clean the
awfullness
> that are my current implementations (an octonion parser which might
call
> a quaternion parser which might call a complex parser (or rely on
the
> standard library input),...).
>
The library is able to handle complex nested types, such as vectors of
lists of pairs. I believe this should work for quaternions and
octonions, too. You should consult Reece for the details.
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk