[Boost-bugs] [Boost C++ Libraries] #2749: [any] multi method for boost::any and modified boost::any to fit multi method

Subject: [Boost-bugs] [Boost C++ Libraries] #2749: [any] multi method for boost::any and modified boost::any to fit multi method
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-11 15:43:30


#2749: [any] multi method for boost::any and modified boost::any to fit multi
method
----------------------------------------+-----------------------------------
 Reporter: nowake_at_[hidden] | Owner: nasonov
     Type: Library Submissions | Status: new
Milestone: Boost 1.39.0 | Component: any
  Version: Boost 1.38.0 | Severity: Optimization
 Keywords: any multimethod dispatcher |
----------------------------------------+-----------------------------------
 I tried to implement multimethod using Modern C++ Design's multi method
 technique.


 Multimethod.hpp::
    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
 [http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/4f7c7a96f9afbe44/c95a7b4c645e449f#doc_e5fbc9305539f699
 is_call_possible].[[BR]]
    And you must "entry" multi method before using multi methods.
    (same as Modern C++ Design's multi methods)

 Holder.hpp::
    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.

 Please see attached main.cpp to check samples.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2749>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC