Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 425 in protobuf: compiler/command_line_interfac e.cc doesn't compile on vs2012
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
proto...@googlecode.com  
View profile  
 More options Oct 10 2012, 1:44 pm
From: proto...@googlecode.com
Date: Wed, 10 Oct 2012 17:44:55 +0000
Local: Wed, Oct 10 2012 1:44 pm
Subject: Issue 425 in protobuf: compiler/command_line_interface.cc doesn't compile on vs2012
Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 425 by scot...@chromium.org: compiler/command_line_interface.cc  
doesn't compile on vs2012
http://code.google.com/p/protobuf/issues/detail?id=425

Error is:

[1->1/2 ~0] CXX  
obj\third_party\protobuf\src\google\protobuf\compiler\protoc.command_line_i nterface.obj
FAILED: ninja -t msvc -r . -o  
obj\third_party\protobuf\src\google\protobuf\compiler\protoc.command_line_i nterface.obj  
-e environment.x86 -- cl.exe /nologo /showIncludes /FC  
@obj\third_party\protobuf\src\google\protobuf\compiler\protoc.command_line_ interface.obj.rsp  
/c ..\..\third_party\protobuf\src\google\protobuf\compiler\command_line_interf ace.cc  
/Foobj\third_party\protobuf\src\google\protobuf\compiler\protoc.command_lin e_interface.obj  
/Fdprotoc.pdb
d:\src\cr\src\third_party\protobuf\src\google\protobuf\compiler\command_lin e_interface.cc(913) :  
error  
C2664: 'std::make_pair' : cannot convert parameter 1  
from 'std::string' to 'std::string &&'
         You cannot bind an lvalue to an rvalue reference

Seems odd to have explicit specialization on make_pair. Trivial patch:

diff --git  
a/third_party/protobuf/src/google/protobuf/compiler/command_line_interface. cc  
b/third_party/protobuf/src/google/protobuf/index 060a612..c5be9b4 100644
---  
a/third_party/protobuf/src/google/protobuf/compiler/command_line_interface. cc
+++  
b/third_party/protobuf/src/google/protobuf/compiler/command_line_interface. cc
@@ -910,7 +910,7 @@ bool CommandLineInterface::InterpretArgument(const  
string& name,
          cerr << disk_path << ": warning: directory does not exist." <<  
endl;
        }

-      proto_path_.push_back(make_pair<string, string>(virtual_path,  
disk_path));
+      proto_path_.push_back(make_pair(virtual_path, disk_path));
      }

    } else if (name == "-o" || name == "--descriptor_set_out") {


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
proto...@googlecode.com  
View profile  
 More options Oct 10 2012, 1:46 pm
From: proto...@googlecode.com
Date: Wed, 10 Oct 2012 17:46:38 +0000
Local: Wed, Oct 10 2012 1:46 pm
Subject: Re: Issue 425 in protobuf: compiler/command_line_interface.cc doesn't compile on vs2012

Comment #1 on issue 425 by scot...@chromium.org:  
compiler/command_line_interface.cc doesn't compile on vs2012
http://code.google.com/p/protobuf/issues/detail?id=425

Ah, I see this was logged as issue #379 also. Would you mind applying  
either this patch or switch to pair<string, string>(...)?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
proto...@googlecode.com  
View profile  
 More options Dec 3 2012, 7:11 pm
From: proto...@googlecode.com
Date: Tue, 04 Dec 2012 00:11:06 +0000
Local: Mon, Dec 3 2012 7:11 pm
Subject: Re: Issue 425 in protobuf: compiler/command_line_interface.cc doesn't compile on vs2012
Updates:
        Status: Duplicate
        Mergedinto: 379

Comment #2 on issue 425 by xiaof...@google.com:  
compiler/command_line_interface.cc doesn't compile on vs2012
http://code.google.com/p/protobuf/issues/detail?id=425

(No comment was entered for this change.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »