vector-of-bool / cmrc

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

Changed std::deque to std::list for portability. #7

Closed equackenbush closed 6 years ago

equackenbush commented 6 years ago

Added default move constructors to support the change to std::list. Silenced unreferenced member warning for projects that treat warnings as errors. Added convenience methods file::size and file::operator bool.

The pattern:

struct A {
  std::deque<A> a;
};

is not supported for std::deque by recent MSVC compilers or Xcode 9.4.1. (MSVC compilers were checked @ https://godbolt.org/z/LOOgLt)