|
Boost Users : |
Subject: Re: [Boost-users] Odd limitation in Fusion design ?
From: John Dlugosz (JDlugosz_at_[hidden])
Date: 2010-07-08 20:42:41
> > So you give it two functions, one to do on the way down and another
> to do on a the way up?
> >
> Yes. However, I'm not sure if the way-up function is the NowUp or Else
> template parameter. I'd have to look at the
> backus_turingaward_lecture.pdf reference to see which is which.
>
>
My own effort at this, straddling the compile-time and run-time boundaries, is posted on a new topic. I can't get the necessarily run-time test for done-ness to play nice with the compile-time metafunctions that are "run" (expanded) regardless of what might happen at run time.
I'm sure it's a documentation problem with Fusion. There is no guarantee that the 'end' iterator evaluates to a unique type that won't happen to match the iterator's type inside the normal work. For a cons (Lisp-like) list I'm rather certain that it will be, unless he's using some kind of type erasure in the implementation, but I don't want to make that assumption, and even if that were taken, it seems difficult to accomplish (compared with simply knowing a simple name for a type that could be used in a partial specialization or overloaded form). I'm assuming that there is intended to be some simple and natural way to iterate a collection other than using the canned fold or for_each functions!
--John
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
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