• Nobuaki Sukegawa's avatar
    Make C++ string oneof field compatible with C++11 · 2413cb57
    Nobuaki Sukegawa authored
    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.
    2413cb57
Name
Last commit
Last update
benchmarks Loading commit data...
editors Loading commit data...
examples Loading commit data...
java Loading commit data...
javanano Loading commit data...
m4 Loading commit data...
more_tests Loading commit data...
python Loading commit data...
src Loading commit data...
vsprojects Loading commit data...
.gitignore Loading commit data...
Android.mk Loading commit data...
CHANGES.txt Loading commit data...
CONTRIBUTORS.txt Loading commit data...
INSTALL.txt Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
generate_descriptor_proto.sh Loading commit data...
post_process_dist.sh Loading commit data...
protobuf-lite.pc.in Loading commit data...
protobuf.pc.in Loading commit data...