Skip to content

Comments

Fix compatibility issues with extract_features#3395

Merged
longjon merged 1 commit intoBVLC:masterfrom
BonsaiAI:extract_features-compatibility
Dec 4, 2015
Merged

Fix compatibility issues with extract_features#3395
longjon merged 1 commit intoBVLC:masterfrom
BonsaiAI:extract_features-compatibility

Conversation

@eelstork
Copy link
Contributor

In some environments, boost::shared_ptr may conflict with std (with C++ TR1 or C++11). Suggesting we avoid ambiguous notations in this case.
uint is nonstandard.
This PR addresses compatibility issues.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably should have just been int all along, yes? atoi returns int, the check below is currently bogus, and SetDevice expects int. And we generally don't use unsigned per Google style guide.

This is the only appearance of uint in Caffe; I wonder if it's a typo!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a typo.

@eelstork
Copy link
Contributor Author

eelstork commented Dec 4, 2015

Updated to reflect @longjon's sensible remark.

@longjon
Copy link
Contributor

longjon commented Dec 4, 2015

Looks good, thanks @eelstork!

longjon added a commit that referenced this pull request Dec 4, 2015
Fix compatibility issues with extract_features
@longjon longjon merged commit 9c9f94e into BVLC:master Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants