Boost C++ Libraries: Ticket #6281: Concepts for MPL https://svn.boost.org/trac10/ticket/6281 <p> Attached please find implementation of concepts for MPL sequences and iterators. This includes some archtypes as well as some testing of the mpl implementations. This isn't quite complete, but it does do enough to help me find some errors in my mpl usage. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6281 Trac 1.4.3 Robert Ramey Fri, 16 Dec 2011 22:26:48 GMT attachment set https://svn.boost.org/trac10/ticket/6281 https://svn.boost.org/trac10/ticket/6281 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mpl concepts.zip</span> </li> </ul> <p> concept implementation and tests for mpl </p> Ticket Joel Falcou Sat, 17 Dec 2011 11:43:15 GMT <link>https://svn.boost.org/trac10/ticket/6281#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6281#comment:1</guid> <description> <p> Thanks Robert, will add these to boost/mpl/concepts asap. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sat, 17 Dec 2011 17:17:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6281#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6281#comment:2</guid> <description> <p> You might want to be a little more conservative about this. I don't think it's really ready to be unleashed upon unsuspecting users. I'm working on something else which designed to be used my "end users". In order to keep some trivial error from unleashing a blizzard of immpenatrable error messages, I am implementing concepts into this "something else" from the very beginning. In doing this, I came to realize that I had to do this for some of MPL as well - hence this package. I've posted it here in the hope you or someone else might find it useful. It includes concepts for MPL iterators and for MPL forward and associative sequences. It's missing concepts for other types of sequences - extensible ... . </p> <p> I've included archtypes as part of the test. I had a lot of difficulty with making archtypes for the test and I don't think this is really correct. So given this, I made test_concepts.cpp which tests some the sequences provide by mpl - list, set, etc. Of course it should be no surprise that this brought out problems in the concepts themselves which had to be addressed. </p> <p> So the code might be useful - but not really ready for prime time. If this were deemed useful, it should be completed for the other sequences and include some documentation. Also the directory structure would have to be tweeked to be able to just drop into MPL. At this point, I'm happy to put it here and see if there is sufficient interest to justify this extra effort. Hmmmm - maybe this should be posted to the vault. Or maybe if you look at it you might find it useful and feel comfortable in incorporating right away. It's totally up to you as far as I'm concerned. </p> <p> For me, just making the code has be instructive to me personally. But even more interesting, it has already found a few bugs in my "real" code that I'm not sure I would have found. </p> <p> Anyway, I'll leave this to you. Thanks for an encouraging reception. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> </channel> </rss>