Ett bra bibliotek skulle hjälpa utvecklare att undvika dessa problem Det finns ingen anledning att anropa funktioner utan sidoeffekter som vector::contains() utan att använda returresultatet De flesta moderna kompilatorer stöder flaggor som [[nodiscard]] eller #[must_use] som avger en varning om ett returvärde ignoreras Just nu stöder inte flyttkompilatorerna och körningsbiblioteken dessa attribut som hjälper utvecklare att undvika att skriva felaktig kod nodiscard skulle vara en bra funktion att lägga till i kompilatorn och flytta körtider