diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-18 00:11:25 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-18 00:24:13 +0300 |
commit | 3eec1310829f6ec7f3c40a35d5991b0ebbf273b5 (patch) | |
tree | ce8257ca7e35f0471bbc1fd67acd8a1c75969ec9 /include/winapi/buffer.hpp | |
parent | process_tests: add stdin redirection test (diff) | |
download | winapi-common-3eec1310829f6ec7f3c40a35d5991b0ebbf273b5.tar.gz winapi-common-3eec1310829f6ec7f3c40a35d5991b0ebbf273b5.zip |
Process: add methods to load resource strings
Diffstat (limited to '')
-rw-r--r-- | include/winapi/buffer.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/winapi/buffer.hpp b/include/winapi/buffer.hpp index 246822e..7c8f928 100644 --- a/include/winapi/buffer.hpp +++ b/include/winapi/buffer.hpp @@ -7,6 +7,7 @@ #include <cstddef> #include <cstring> +#include <initializer_list> #include <sstream> #include <stdexcept> #include <string> @@ -21,6 +22,8 @@ public: Buffer() = default; + Buffer(std::initializer_list<unsigned char> lst) : Parent(lst) {} + explicit Buffer(Parent&& src) : Parent(std::move(src)) {} template <typename CharT> @@ -28,7 +31,7 @@ public: set(src); } - explicit Buffer(const void* src, std::size_t nb) { set(src, nb); } + Buffer(const void* src, std::size_t nb) { set(src, nb); } template <typename CharT> void set(const std::basic_string<CharT>& src) { |