Boost logo

Boost Users :

Subject: Re: [Boost-users] framework for invoking func-ptrs with different argument numbers
From: Nat Goodspeed (nat_at_[hidden])
Date: 2013-08-18 13:35:02


On Aug 16, 2013, at 1:14 PM, firespot <firespot71_at_[hidden]> wrote:

> Does boost provide a more or less easy way to get this implementation smoothly done? C++ is 2003 version, so code must be compatible with e.g. VS 2008..

This example is the classic approach:
http://www.boost.org/doc/libs/1_54_0/libs/function_types/example/interpreter.hpp

In my case I had what amounts to an array of boost::variant with certain scalar types, but it was fairly straightforward to convert from "parsing the next argument" to "using the next array entry." And yes, it's C++03 compatible. Give it a try, and good luck!
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net