mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
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:
committed by
Peter Johnson
parent
f225c4773a
commit
b91ab0b44f
10
src/Image.h
10
src/Image.h
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user