[fusion][list_to_cons]How does it work?

Are my comments in the attached variation of: http://tinyurl.com/oxk4u about right? Could someone provide any needed clarification?

Larry Evans wrote:
Are my comments in the attached variation of:
about right? Could someone provide any needed clarification?
Yes, I think that's just correct. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net

On 06/01/2006 11:04 PM, Joel de Guzman wrote:
Larry Evans wrote:
Are my comments in the attached variation of:
about right? Could someone provide any needed clarification?
Yes, I think that's just correct.
Thanks, Joel. Actually the comments should have said something like for each M in 0 to FUSION_MAX_LIST_SIZE ( or maybe FUSION_MAX_LIST_SIZE-1? ), a static method is created. Also, N ( instead of M ) would be a better name for the iteration index since that's what's used in list_to_cons_call.hpp. And if I'd read the comment before #include <.../list_forward_ctor.hpp> in list.hpp I might have avoided these questions ;( Sorry about that.

Larry Evans wrote:
On 06/01/2006 11:04 PM, Joel de Guzman wrote:
Larry Evans wrote:
Are my comments in the attached variation of:
about right? Could someone provide any needed clarification?
Yes, I think that's just correct.
Thanks, Joel. Actually the comments should have said something like for each M in 0 to FUSION_MAX_LIST_SIZE ( or maybe FUSION_MAX_LIST_SIZE-1? ), a static method is created. Also, N ( instead of M ) would be a better name for the iteration index since that's what's used in list_to_cons_call.hpp.
And if I'd read the comment before #include <.../list_forward_ctor.hpp> in list.hpp I might have avoided these questions ;( Sorry about that.
No problem. If it helps to add that comment, feel free to do so. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net

On 06/02/2006 07:52 AM, Joel de Guzman wrote:
Larry Evans wrote: [snip]
And if I'd read the comment before #include <.../list_forward_ctor.hpp> in list.hpp I might have avoided these questions ;( Sorry about that.
No problem. If it helps to add that comment, feel free to do so.
Done. Also changed list/detail/at_impl.hpp as discussed earlier: http://archives.free.net.ph/message/20060517.061044.658ce9ff.en.html

On 06/02/2006 02:06 PM, Larry Evans wrote: [snip]
Done. Also changed list/detail/at_impl.hpp as discussed earlier:
http://archives.free.net.ph/message/20060517.061044.658ce9ff.en.html
and all tests with list in their name passed; so, I guess I didn't break anything.

Larry Evans wrote:
On 06/02/2006 02:06 PM, Larry Evans wrote: [snip]
Done. Also changed list/detail/at_impl.hpp as discussed earlier:
http://archives.free.net.ph/message/20060517.061044.658ce9ff.en.html
and all tests with list in their name passed; so, I guess I didn't break anything.
Cool! Thanks a lot, Larry! Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net

Larry Evans wrote:
On 06/02/2006 02:06 PM, Larry Evans wrote: [snip]
Done. Also changed list/detail/at_impl.hpp as discussed earlier:
http://archives.free.net.ph/message/20060517.061044.658ce9ff.en.html
and all tests with list in their name passed; so, I guess I didn't break anything.
Cool! Thanks a lot, Larry! You're most welcome. Unfortunately, I put it in the SEGMENTED_FUSION_V2 instead of FUSION_V2 branch as a result of hasty cut and past. However, since SEGMENTED_FUSION_V2 will eventually be merged with FUSION_V2, I guess
On 2006-06-02 22:13, Joel de Guzman wrote: this is OK.
participants (2)
-
Joel de Guzman
-
Larry Evans