News for hackers. Stuff that matters.
Re:Folly: An open-source C++ library developed and used at F... by PaulDavisThe1st on Saturday January 08, 2022 @01:23AM (#29849134)
boost::variant will allocate to save state during construction of a new value type, in order to be able to roll back if the constructor throws an exception.

std::variant does not do this.

Re:Folly: An open-source C++ library developed and used at F... by gumby on Sunday January 09, 2022 @11:05PM (#29870498)
Is std::variant forbidden from doing this per standard or is it simply one (or several) implementations that made this choice?