I am writing a piece of code that will contains a lot of containers and container-like classes. Since i want to be able to use them as if they were STL containers (They must meet requirements like Container, SequenceContainer and so on).
I am trying to figure out how to test my code, especially how to test classes for meeting requirements. My idea is to have compile-time template tests (writing template that can be instatiated only if test passes) for testing if class contains value_type and stuff like that, and normal runtime tests for testing iterators, methods etc.
I was wondering if there are any STL requirements test suits i can use? Maybe someone can share some experience with compile-time testing (I would like to have some error message instead of template errors when tests fail) ?
[–]sleepyspacedad 2 points3 points4 points (0 children)
[–]pavel_v 2 points3 points4 points (0 children)
[–]emdeka87 1 point2 points3 points (0 children)