Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor rosidl_typesupport_introspection_cpp::typesupport_introspection_identifier into cpp file #12

Merged
merged 1 commit into from
Apr 13, 2015

Conversation

dirk-thomas
Copy link
Member

Connects to ros2/ros2#30.

@dirk-thomas dirk-thomas added the in progress Actively being worked on (Kanban column) label Apr 10, 2015
@dirk-thomas dirk-thomas self-assigned this Apr 10, 2015
@esteve
Copy link
Member

esteve commented Apr 10, 2015

+1

@@ -18,7 +18,7 @@
namespace rosidl_typesupport_introspection_cpp
{

static const char * typesupport_introspection_identifier = "introspection";
static const char * typesupport_introspection_identifier;
Copy link
Member

Choose a reason for hiding this comment

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

Should this still be static?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would say yes. Why should it not be static? static const is the common alternative to defines.

Copy link
Member

Choose a reason for hiding this comment

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

Because you usually don't use static symbols from other libraries. Maybe it is necessary for how you are exporting the symbol from identifier.cpp to the libraries and executables which use the symbol, but I don't know. It seems to me that const is sufficient since the only thing static adds to this is setting the linkage to internal, which doesn't apply since it is a declaration and not an initialization. At any rate I think the question should not by "why shouldn't it be static" but rather "why should it be static"?

If it works as-is that's fine, I'd just like to understand the reason for it being that way.

@dirk-thomas dirk-thomas force-pushed the refactor_typesupport branch 6 times, most recently from 2209f7d to 679d183 Compare April 13, 2015 18:11
@dirk-thomas
Copy link
Member Author

Finally ready for review. Windows slave was able to build this: http://54.183.26.131:8080/view/ros2/job/ros2_batch_ci_test_windows/15/

@dirk-thomas
Copy link
Member Author

As a follow up of this PR each package using macros for visibility control must use its own macros and not reuse the macros from another package: ros2/ros2#37

@wjwwood
Copy link
Member

wjwwood commented Apr 13, 2015

+1

1 similar comment
@tfoote
Copy link

tfoote commented Apr 13, 2015

+1

dirk-thomas added a commit that referenced this pull request Apr 13, 2015
refactor rosidl_typesupport_introspection_cpp::typesupport_introspection_identifier into cpp file
@dirk-thomas dirk-thomas merged commit 30f7296 into master Apr 13, 2015
@dirk-thomas dirk-thomas removed the in progress Actively being worked on (Kanban column) label Apr 13, 2015
@dirk-thomas dirk-thomas deleted the refactor_typesupport branch April 13, 2015 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants