mirror of
https://github.com/ksherlock/dot_clean.git
synced 2026-04-20 17:18:35 +00:00
mapped file fixes.
This commit is contained in:
+7
-1
@@ -27,8 +27,14 @@ namespace {
|
||||
throw_error(GetLastError());
|
||||
}
|
||||
|
||||
void throw_error(const char *what) {
|
||||
int e = GetLastError();
|
||||
throw_error(e, what);
|
||||
}
|
||||
|
||||
void throw_error(const std::string &what) {
|
||||
throw_error(GetLastError(), what);
|
||||
int e = GetLastError();
|
||||
throw_error(e, what);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
-3
@@ -96,7 +96,7 @@ public:
|
||||
}
|
||||
|
||||
value_type *data() {
|
||||
return _flags == readonly ? (value_type *)nullptr : (value_type *)_data;
|
||||
return (value_type *)_data;
|
||||
}
|
||||
|
||||
const_iterator cbegin() const {
|
||||
@@ -119,11 +119,11 @@ public:
|
||||
|
||||
|
||||
iterator begin() {
|
||||
return _flags == readonly ? (iterator)nullptr : (iterator)_data;
|
||||
return (iterator)_data;
|
||||
}
|
||||
|
||||
iterator end() {
|
||||
return _flags == readonly ? (iterator)nullptr : (iterator)_data + size();
|
||||
return (iterator)_data + size();
|
||||
}
|
||||
|
||||
mapmode flags() const {
|
||||
|
||||
Reference in New Issue
Block a user