Commit a41a9dd5 authored by kenton@google.com's avatar kenton@google.com

* Fixed template specialization syntax that MSVC 2005 didn't like. Not sure if

  it was valid or not.
* Moved UTF-8 coding directive to the right place in reflection_test.py.
parent c76caacc
# -*- coding: utf-8 -*-
# Protocol Buffers - Google's data interchange format # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved. # Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/ # http://code.google.com/p/protobuf/
...@@ -28,10 +30,6 @@ ...@@ -28,10 +30,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# -*- coding: utf-8 -*-
#
# Copyright 2007 Google Inc. All Rights Reserved.
"""Unittest for reflection.py, which also indirectly tests the output of the """Unittest for reflection.py, which also indirectly tests the output of the
pure-Python protocol compiler. pure-Python protocol compiler.
""" """
......
...@@ -2208,7 +2208,7 @@ template<class DescriptorT> void DescriptorBuilder::AllocateOptions( ...@@ -2208,7 +2208,7 @@ template<class DescriptorT> void DescriptorBuilder::AllocateOptions(
} }
// We specialize for FileDescriptor. // We specialize for FileDescriptor.
template<> void DescriptorBuilder::AllocateOptions( template<> void DescriptorBuilder::AllocateOptions<FileDescriptor>(
const FileDescriptor::OptionsType& orig_options, const FileDescriptor::OptionsType& orig_options,
FileDescriptor* descriptor) { FileDescriptor* descriptor) {
// We add the dummy token so that LookupSymbol does the right thing. // We add the dummy token so that LookupSymbol does the right thing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment