Skip to content
Snippets Groups Projects
Commit dfe68566 authored by Andrew Gunnerson's avatar Andrew Gunnerson Committed by Wouter van Oortmerssen
Browse files

Add char * overload for FlatBufferBuilder::CreateString() (#4583)


Without this change, the compiler tries to select the following overload
when CreateString is passed a `char *`:

    template<typename T>
    Offset<String> CreateString(const T &str) {
      return CreateString(str.c_str(), str.length());
    }

which is not valid since char pointers don't have methods.

(Fixes #4579)

Signed-off-by: default avatarAndrew Gunnerson <chenxiaolong@cxl.epac.to>
parent 0aa36101
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment