Re: [Patch] basic rvalue references support
Joel de Guzman <[email protected]> Mon, 14 Feb 2011 22:13:10 +0800
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2/13/11 11:45 PM, Mathias Gaunard wrote: > The attached patch brings basic rvalue references support to Qi, which > allows it to build a tree of movable but non-copiable types, as in the > attached example. > I have tested that this works correctly with GCC 4.5 in C++0x mode. > > I believe this is very valuable, since without this feature Qi would > keep deep-copying the tree every time; this is the beginning of a much > faster Qi. > > The patch is probably incomplete (changes to assign_to might also be > necessary), but it is sufficient for that basic example to work. > > There are very few changes in Spirit; Fusion was the main culprit. > > (This patch contains a couple more changes than what I had sent to > Hartmut on IRC -- I've also removed variadic templates from the example > so that it could compile on MSVC2010) This is very nice, Mathias! I'll apply the patch, if Hartmut hasn't done so yet. Thank you very much! Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb