string element append fix and OS X support note
parent
7912c24e3a
commit
676f76acee
|
@ -38,5 +38,11 @@ Currently supported OSes in OctaSTD are Linux, FreeBSD and OS X. Other
|
||||||
systems that implement POSIX API will also work (if they don't, bug reports
|
systems that implement POSIX API will also work (if they don't, bug reports
|
||||||
are welcome).
|
are welcome).
|
||||||
|
|
||||||
|
OS X support requires Xcode 8 or newer to work. That is the first version to
|
||||||
|
ship a Clang 3.8 based toolchain, so things will not compile with an older
|
||||||
|
version of Xcode. Alternatively you are free to use any other supported
|
||||||
|
compiler from other distribution channels (official Clang, homebrew gcc
|
||||||
|
or clang, etc.).
|
||||||
|
|
||||||
Windows is supported at least with the MinGW (gcc) and Clang compilers. MS
|
Windows is supported at least with the MinGW (gcc) and Clang compilers. MS
|
||||||
Visual Studio is currently unsupported.
|
Visual Studio is currently unsupported.
|
||||||
|
|
|
@ -504,7 +504,7 @@ public:
|
||||||
StringBase &append(Size n, T c) {
|
StringBase &append(Size n, T c) {
|
||||||
if (!n) return *this;
|
if (!n) return *this;
|
||||||
reserve(p_len + n);
|
reserve(p_len + n);
|
||||||
for (Size i = 0; i < n; ++n) p_buf.first()[p_len + i] = c;
|
for (Size i = 0; i < n; ++i) p_buf.first()[p_len + i] = c;
|
||||||
p_len += n;
|
p_len += n;
|
||||||
p_buf.first()[p_len] = '\0';
|
p_buf.first()[p_len] = '\0';
|
||||||
return *this;
|
return *this;
|
||||||
|
|
Loading…
Reference in New Issue