diff options
author | Nobuaki Sukegawa <nsukeg@gmail.com> | 2014-11-29 22:03:31 +0900 |
---|---|---|
committer | Nobuaki Sukegawa <nsukeg@gmail.com> | 2014-12-03 23:41:40 +0900 |
commit | 2413cb57efd31983b810cb256cdb48d9b8a062fb (patch) | |
tree | b36be974d08cc02aeec3720a8c1e6f7176d175e3 /vsprojects | |
parent | 4470dcba6c41a9fcb749d69b1414d7b75991bdc1 (diff) | |
download | protobuf-2413cb57efd31983b810cb256cdb48d9b8a062fb.tar.gz protobuf-2413cb57efd31983b810cb256cdb48d9b8a062fb.tar.bz2 protobuf-2413cb57efd31983b810cb256cdb48d9b8a062fb.zip |
Make C++ string oneof field compatible with C++11
string oneof field was generated into "const ArenaStringPtr" field inside
"default_oneof_instance_" struct (of name "<class name>OneofInstance").
On the other hand, in C++11, const field of type with trivial default
constructor causes enclosing type's implicit default constructor to be deleted.
Since ArenaStringPtr has tirvial default constructor, this caused default
constructor of "default_oneof_instance_" struct to be deleted, making the
constructor call inside generated code invalid and fail to compile.
Diffstat (limited to 'vsprojects')
0 files changed, 0 insertions, 0 deletions