using boost.concept_check to document stream class and check its implementations.