On 9/14/2014 3:12 PM, Edward Diener wrote:
On 9/14/2014 5:10 PM, pfultz2 wrote:
I am not sure what you mean by namespaces ? Do you mean the type of the token parsed ?
I believe he means macro prefixes such as BOOST_PP_, BOOST_VMD_, or BOOST_VMD_NAMESPACE_.
Perhaps Paul can explain it better than me.
The BOOST_PP_AUTO_REC macro is not documented so maybe you can understand my being puzzled by it and what it is used for. Other undocumented macros in Boost PP are generally easier for me to follow.
The BOOST_PP_AUTO_REC macro is used to find the first macro of a set of
macros which has not been painted (i.e. will expand). It requires a set
of macros which are a power of 2 which are used in order. For example:
#include
You could actually do something similar with VMD now but you would have to try each v-type separately to see if it begins the v-sequence. But after Paul Mensonides provided a better solution to identifying v-identifiers and v-numbers I can improve the parsing of VMD v-sequences greatly.
In fact with VMD a v-sequence becomes another preprocessor "data type" similar to the high level Boost PP data types of array, list, seq, and tuple. I should really work to produce whatever operations with a v-sequence I can that would mimic some of those Boost PP data types. Its challenging to think about but it will be fun work except for the usual VC++isms.
The alternate registration mechanism (excluding the comma in the registration itself) that you guys realized is good and is obvious is retrospect. That would make the registration much cleaner. Regards, Paul Mensonides