• Daniela Engert's avatar
    fix: 'format_to_n' compiles 'std::back_inserter' arguments · 1e3dcbba
    Daniela Engert authored
    std::back_insert_iterators model the OutputIterator concept but differ considerably in their traits and behavior. In particular the former made compilation to fail when format_to_n is given a back_inserter as first argument. The emulation of an OutputIterator is not perfect due to the behavioural differences of back_insert_iterators (e.g. assignment always implies increment) but good enough to be used within fmt's machinery.
    1e3dcbba
format-test.cc 86.2 KB