Why is the use of tuples in C++ not more common?

前端 未结 12 550
-上瘾入骨i
-上瘾入骨i 2021-01-29 23:48

Why does nobody seem to use tuples in C++, either the Boost Tuple Library or the standard library for TR1? I have read a lot of C++ code, and very rarely do I see the use of tup

12条回答
  •  说谎
    说谎 (楼主)
    2021-01-30 00:16

    I have a feeling that many use Boost.Any and Boost.Variant (with some engineering) instead of Boost.Tuple.

提交回复
热议问题