What is the typical usage of boost any library?

前端 未结 5 1175
暗喜
暗喜 2020-12-30 00:44

What are the advantages of using boost.any library ? Could you please give me some real life examples ? Why the same functionality couldn\'t be achieved by having some gener

5条回答
  •  囚心锁ツ
    2020-12-30 01:31

    I consider that Boost.Variant should always be preferred as it's non-intrusive and still calls for very structured programming.

    But i guess the main idea behind boost.any is to provide the equivalent of java and c# object types. It's a way of saying "yes we can" ! :-)

提交回复
热议问题