Skip to content

Commit

Permalink
properly reference std::vector (thanks, Brian Ripley)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Jul 8, 2018
1 parent 868ad27 commit 14e95af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2018-07-08 Dirk Eddelbuettel <edd@debian.org>

* src/wrapper_Message.cpp (rprotobuf): Properly reference std::vector
(as noticed by Brian Ripley with protobuf 3.6)

2018-06-25 Jeroen Ooms <jeroenooms@gmail.com>

* src/Makevars.win: update Windows build to protobuf v3.5.1 to
Expand Down
2 changes: 1 addition & 1 deletion src/wrapper_Message.cpp
Expand Up @@ -229,7 +229,7 @@ RPB_FUNCTION_1(int, METHOD(length), Rcpp::XPtr<GPB::Message> message) {
RPB_FUNCTION_1(int, METHOD(num_extensions), Rcpp::XPtr<GPB::Message> message) {
const GPB::Reflection* ref = message->GetReflection();
int nexts = 0;
vector<const FieldDescriptor*> fields;
std::vector<const FieldDescriptor*> fields;
ref->ListFields(*message, &fields);
for (unsigned int i = 0; i < fields.size(); i++) {
if (fields[i]->is_extension()) {
Expand Down

0 comments on commit 14e95af

Please sign in to comment.