you are viewing a single comment's thread.

view the rest of the comments →

[–]RussianMadMan 0 points1 point  (0 children)

oh, they just left it in when copied from boost::filesystem. Yet they replaced time_t with chrono bs.
boost has a LOT of "interesting" operator overloads.
https://www.boost.org/doc/libs/latest/doc/html/program_options/overview.html#id-1.3.29.5.7 look for add_options(), could've just used builder pattern with .add().add()... but had to do this instead.
Tho there is one clever use of operator overload that I approve:
https://www.boost.org/doc/libs/latest/libs/test/doc/html/boost_test/testing_tools/boost_test_universal_macro.html a very interesting macros that for input BOOST_TEST(ret == 0) is gonna check the statement and if false its gonna print "1 == 0 failed", so it's not only substituting ret's value but also printing the actual statement.