vector-of-bool / cmrc

A Resource Compiler in a Single CMake Script
MIT License
672 stars 74 forks source link

Mixed up increment operators implementation for cmrc::detail::directory::iterator #15

Open harvestor opened 5 years ago

harvestor commented 5 years ago

Issue in "CMakeRC.cmake": prefix increment operator is written as postfix and vice versa. Should be:

        iterator operator++(int) noexcept {
            auto cp = *this;
            ++_base_iter;
            return cp;
        }

        iterator& operator++() noexcept {
            ++_base_iter;
            return *this;
        }