Boost logo

Boost Users :

Subject: Re: [Boost-users] Is it possible to store a list in an interval map?
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2012-03-25 17:53:20


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Am 23.03.12 16:07, schrieb Rajalakshmi Iyer:
> But boost complains if I change the 'set' to a 'list' in the above
> code.
>
> Is only the 'set' supported as a value?

Only 'set' is supported by default. An interval_map requires a method
to combine values into new ones, called aggregation. For 'set' this is
the set union. But for lists there is no generic way by default. See here:
http://www.boost.org/doc/libs/1_49_0/libs/icl/doc/html/boost_icl/concepts/aggrovering.html

Implement some aggregation for 'list' first!

HTH,
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: keyserver x-hkp://pool.sks-keyservers.net

iEYEARECAAYFAk9vk9AACgkQhAOUmAZhnmp6EACfa8VuW6TVOLAH6KV9Xffw2vFu
TnUAnRoSGCbwVs8FiL/j9p3Ncd85GN0M
=6lbs
-----END PGP SIGNATURE-----


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