소스 검색

core: add missing <cstring> include in our string.h.

legacy
Sam Hocevar sam 13 년 전
부모
커밋
75b677cade
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      src/lol/base/string.h

+ 4
- 0
src/lol/base/string.h 파일 보기

@@ -19,6 +19,8 @@

#include <lol/base/array.h>

#include <cstring>

namespace lol
{

@@ -37,6 +39,7 @@ public:
inline String(char const *str)
: Super()
{
using std::memcpy;
Resize((int)strlen(str));
memcpy(&(*this)[0], str, Count() + 1);
}
@@ -44,6 +47,7 @@ public:
inline String(char const *str, int count)
: Super()
{
using std::memcpy;
Resize(count + 1);
memcpy(&(*this)[0], str, Count());
((Super &)*this).Last() = '\0';


불러오는 중...
취소
저장