Closed ZachOB closed 4 months ago
Review changes with SemanticDiff.
You need to create new unit tests to test that the use of the constexpr
changes compile and work correctly.
Looks like my use of constexpr was a little more hopeful than useful.
Both intrusive_list
and intrusive_forward_list
are not literal due to the clear()
in their destructors. intrusive_queue
and intrusive_stack
have no destructors, so can be constexpr, but maybe they should call clear()
in their destructors?
The only use I can think of for a constexpr queue/stack is data processing in constexpr functions, as having a standalone constexpr queue or stack seems entirely pointless.
Adding
constexpr
to the intrusive containers. I was able to build and run tests for c++11, 14, and 17. c++20 had some issues withchar8_t
so I was unable to run those. c++03 was very broken for me butETL_CONSTEXPR
should be pre-compiled away so I don't think this could have broken anything.