Questions tagged [boost-extension]

9 questions
2
votes
2 answers

Boost.Extension - simple inheritance sample - why we see no animals on linux?

So I try to port some Boost.Extension samples for linux. The sample is described here. Here is my code port (classes with animals, animal prototype, main app, general all port idea is described here, and some current linux progress here (some…
Rella
  • 65,003
  • 109
  • 363
  • 636
1
vote
1 answer

Boost SML: respond to determination made in action

I am trying to use a Boost SML state machine to implement a "receiver". As an example, lets say the SM receives ints and is "done" when it gets to a certain number: An "idle" state moves to a "reading" state on a "receive" event, accumulate the…
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
1
vote
1 answer

[Boost::ext].SML: Access SM and dependencies in an action

I'm using SML (https://boost-ext.github.io/sml/) v.1.1.3 and I need to access the injected dependencies and the state machine in actions. According to the following commit this should already work:…
1
vote
1 answer

Boost how to create a map for types selection?

so i use BOOST.EXTENTION to load modules. I have a special file that describes each module. I read variables from that file. so such example: shared_library m("my_module_name"); // Call a function that returns an int and takes a float…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

How Curly Brackets work in Boost::extension, how to make such macros on my own?

I look at how we use Boost::Extension BOOST_EXTENSION_TYPE_MAP_FUNCTION macro. For example like this: BOOST_EXTENSION_TYPE_MAP_FUNCTION { std::map > &factories(types.get()); …
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

Boost-Extension-Reflection How to fix segmentation fault error when compiling official sample not with bjam?

So I try to port some Boost.Extension samples for standart IDEs - to make tham free from BJAM and to be able to work with them in standard ways across platforms. The sample I have trobules with now is described here. Here is my code port (library…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

What is main difference between creation of reference vs creation of object?

So a while ago I were playing with Boost.Extension example. They used std::map > computers; computers.swap(types.get()); But when I started porting project from bjam to premake to visual studio project 2008 I…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

how to receive map& from function/class?

How to receive map > from such function? So I have template map > get_factories (shared_library & lib) { type_map…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
0 answers

is there a way to clone a run-time program to another server

Suppose I'm running a small program on the server. for example, a random number generator and sending the result to a client every second. I know that my server is about to be turned off. Is there a way to clone the program to another server so that…
kirill_igum
  • 3,953
  • 5
  • 47
  • 73