Gets builds working on Windows (VS 2015) (#37)

Def files will be updated after the latest PR with new definitions gets
added.
This commit is contained in:
Thad House
2017-01-02 23:16:35 -08:00
committed by Peter Johnson
parent f225c4773a
commit b91ab0b44f
10 changed files with 212 additions and 302 deletions

View File

@@ -25,10 +25,18 @@ class Image {
friend class Frame;
public:
#ifdef _WIN32
explicit Image(std::size_t capacity) {
m_data.reserve(capacity);
}
#else
explicit Image(std::size_t capacity)
: m_data{capacity, default_init_allocator<char>{}} {
: m_data{capacity, default_init_allocator<uchar>{}} {
m_data.resize(0);
}
#endif
Image(const Image&) = delete;
Image& operator=(const Image&) = delete;