You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "pivotal-jbarrett (GitHub)" <gi...@apache.org> on 2018/10/31 23:04:28 UTC

[GitHub] [geode-native] pivotal-jbarrett commented on pull request #389: GEODE-4337: example cpp function execution

What isn't wrong with this statement.
First, use `=` with `auto`:
```
auto value = CacheableString::create(valueStream.str().c_str());
```

Second, don't convert to `const char *`:
```
auto value = CacheableString::create(valueStream.str());
```

Third, don't explicitly create the `CacheableString`:
```
```

See comment below.

[ Full content available at: https://github.com/apache/geode-native/pull/389 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org