On 03/10/2016 07:47 PM, Phil Bouchard wrote:
On 03/09/2016 11:28 PM, Phil Bouchard wrote:
I fixed the problem and now the correct way to use the pointer is by passing around a proxy explicitly:
[...] block_ptr
t100 = new block ("I eat ([a-z]+) then drink ([a-z]+)"); t100->sub_[0].second = block_ptr (t100.proxy(), new block ("beef|chicken")); t100->sub_[1].second = block_ptr (t100.proxy(), new block ("vodka|water")); Or: https://github.com/philippeb8/block_ptr/blob/master/example/t100_test1.cpp#L...
I will fix make_block<>() to follow this syntax but this is how things should be done. Another useful example is by defining the internals of a container:
I fixed make_block<>() / make_fastblock<>() and now it looks like the
following:
[...]
block_ptr