Boost C++ Libraries: Ticket #2749: [any] multi method for boost::any and modified boost::any to fit multi method https://svn.boost.org/trac10/ticket/2749 <p> I tried to implement multimethod using Modern C++ Design's multi method technique. </p> <p> Multimethod.hpp:: </p> <blockquote> <p> Multi method for boost::any. To specialize MultiMethod::Traits template, you can fit your boost::any like classes (check Holder.hpp). This class necessary loki/LokiTypeInfo.h and <a class="ext-link" href="http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/4f7c7a96f9afbe44/c95a7b4c645e449f#doc_e5fbc9305539f699"><span class="icon">​</span>is_call_possible</a>.<br /> And you must "entry" multi method before using multi methods. (same as Modern C++ Design's multi methods) </p> </blockquote> <p> Holder.hpp:: </p> <blockquote> <p> Costomized boost::any for multi method. This class set unsigned int every class type to access multi method in constant time, and this class can also use multimethod holder. </p> </blockquote> <p> Please see attached main.cpp to check samples. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2749 Trac 1.4.3 nowake@… Wed, 11 Feb 2009 15:44:30 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Multimethod.hpp</span> </li> </ul> <p> Multi method for boost::any </p> Ticket anonymous Wed, 11 Feb 2009 15:45:10 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Holder.hpp</span> </li> </ul> <p> Customized boost::any to fit multi method </p> Ticket anonymous Wed, 11 Feb 2009 15:45:50 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">MemberFunctionChecker.hpp</span> </li> </ul> <p> <a class="ext-link" href="http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/4f7c7a96f9afbe44/c95a7b4c645e449f#doc_e5fbc9305539f699"><span class="icon">​</span>http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/4f7c7a96f9afbe44/c95a7b4c645e449f#doc_e5fbc9305539f699</a> </p> Ticket nowake@… Wed, 11 Feb 2009 16:00:15 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> <p> sample code </p> Ticket nowake@… Fri, 13 Feb 2009 18:26:45 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Multimethod.2.hpp</span> </li> </ul> <p> Multi method for boost::any (update: dispatch in constant-time using boost::unorderd_map) </p> Ticket nowake@… Wed, 18 Feb 2009 14:33:07 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Multimethod.3.hpp</span> </li> </ul> <p> Update <a class="missing wiki">MultiMethod</a> to enhance flexibility of return value. </p> Ticket nowake@… Fri, 20 Feb 2009 10:46:04 GMT attachment set https://svn.boost.org/trac10/ticket/2749 https://svn.boost.org/trac10/ticket/2749 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Multimethod.4.hpp</span> </li> </ul> <p> Update <a class="missing wiki">MultiMethod</a> to enhance flexibility. </p> Ticket anonymous Sun, 13 Sep 2009 19:26:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2749#comment:1 https://svn.boost.org/trac10/ticket/2749#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Sandbox is a better place for this ticket. </p> Ticket nasonov Sun, 13 Sep 2009 22:24:01 GMT <link>https://svn.boost.org/trac10/ticket/2749#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2749#comment:2</guid> <description> <p> Anonymous who closed the bug was me. </p> </description> <category>Ticket</category> </item> </channel> </rss>