You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Examples compilation errors (related to opensplice) when using VS2015 final release. #43
We are getting a new error, seems like it was not present on VS2015 RC (14.0.22816.0) nor other compilers, when compiling the examples with the final (both Express and Professional) VS2015.
c:\jenkins\workspace\ros2_batch_ci_windows\workspace\build\example_interfaces\rosidl_typesupport_opensplice_cpp\example_interfaces\srv\dds_opensplice\AddTwoInts_Request_Dcps_impl.h(32):
error C2248: 'DDS::TypeSupportFactory::TypeSupportFactory': cannot access private member declared in class 'DDS::TypeSupportFactory' [C:\Jenkins\workspace\ros2_batch_ci_windows\workspace\build\example_interfaces
Looks like a typical error of accessing to a default constructor under insufficient permission.
Probably the high level is placed in our examples code is being generated from the examples interfaces IDL code which generates the Sample_AddTwoInts_Response_Dcps_impl.h (this file appears explicitly in the error message) containing:
I could imaging two source of errors, if my approaching is right: a compiler bug that got introduced in the last changes of VS 2015 final release or not a bug, but a feature, in the sense of stricter rule for visibility permissions on class inheritance that requires fixes in the code (I can not see which ones).
Afaik this is valid code until you try to either copy construct foo or use the assignment operator on it. You could try adding either of the fofllowing which will let the compiler generate the default versions of these functions:
Afaik this is valid code until you try to either copy construct foo or use the assignment operator on it.
I think so. Looks like other projects are suffering from the same problem which was caused by a new implementation of the STL library (move semantics went into it). So not really a compiler bug. Seems like we need to patch Opensplice code and give it a try.
Activity
j-rivero commentedon Aug 7, 2015
I tried to reproduce the inheritance structure to quick check but it compiles fine (
cl /EHsc foo.ccp).dirk-thomas commentedon Aug 7, 2015
Afaik this is valid code until you try to either copy construct foo or use the assignment operator on it. You could try adding either of the fofllowing which will let the compiler generate the default versions of these functions:
or
j-rivero commentedon Aug 7, 2015
I think so. Looks like other projects are suffering from the same problem which was caused by a new implementation of the STL library (move semantics went into it). So not really a compiler bug. Seems like we need to patch Opensplice code and give it a try.
dirk-thomas commentedon Aug 8, 2015
Closing this - see latest comment on ros2/ros2#72.