Git Product home page Git Product logo

Comments (1)

vivekpandey02 avatar vivekpandey02 commented on May 29, 2024

RnR.zip

Hi Erik,

I am facing same problem as you mentioned above, when we try to build the attached idl file, we got the below errors:

/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1110:7: error:
static_assert failed due to requirement
'__detail::__variant::__exactly_once<std::__cxx11::basic_string,
DDS::Duration_t, DDS::Time_t, std::__cxx11::basic_string,
std::__cxx11::basic_string >' "T must occur exactly once in
alternatives"
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:274:17: note:
in instantiation of function template specialization
'std::get<std::__cxx11::basic_string, DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >'
requested here
return std::getstd::string(m__u);
^
In file included from /home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/subscriber.cpp:21:
In file included from /home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:15:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1091:7: error:
static_assert failed due to requirement
'__detail::__variant::__exactly_once<std::__cxx11::basic_string,
DDS::Duration_t, DDS::Time_t, std::__cxx11::basic_string,
std::__cxx11::basic_string >' "T must occur exactly once in
alternatives"
static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:283:17: note:
in instantiation of function template specialization
'std::get<std::__cxx11::basic_string, DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >'
requested here
return std::getstd::string(m__u);
^
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:293:10: error:
no viable overloaded '='
m__u = u;
~~~~ ^ ~
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1368:16: note:
candidate function not viable: no known conversion from
'const std::string' (aka 'const basic_string') to 'const
std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(const variant&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1369:16: note:
candidate function not viable: no known conversion from
'const std::string' (aka 'const basic_string') to
'std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(variant&&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1431:2: note:
candidate template ignored: requirement '18446744073709551615UL <
sizeof...(_Types)' was not satisfied [with _Tp = const
std::__cxx11::basic_string &]
operator=(_Tp&& __rhs)
^
In file included from /home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/subscriber.cpp:21:
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:303:10: error:
no viable overloaded '='
m__u = u;
~~~~ ^ ~
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1368:16: note:
candidate function not viable: no known conversion from 'std::string' (aka
'basic_string') to 'const std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(const variant&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1369:16: note:
candidate function not viable: no known conversion from 'std::string' (aka
'basic_string') to 'std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(variant&&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1431:2: note:
candidate template ignored: requirement '18446744073709551615UL <
sizeof...(_Types)' was not satisfied [with _Tp =
std::__cxx11::basic_string &]
operator=(_Tp&& __rhs)
^
In file included from /home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/subscriber.cpp:21:
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:331:10: error:
no viable overloaded '='
m__u = u;
~~~~ ^ ~
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1368:16: note:
candidate function not viable: no known conversion from
'const std::string' (aka 'const basic_string') to 'const
std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(const variant&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1369:16: note:
candidate function not viable: no known conversion from
'const std::string' (aka 'const basic_string') to
'std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(variant&&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1431:2: note:
candidate template ignored: requirement '18446744073709551615UL <
sizeof...(_Types)' was not satisfied [with _Tp = const
std::__cxx11::basic_string &]
operator=(_Tp&& __rhs)
^
In file included from /home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/subscriber.cpp:21:
/home/vivekp/ADLINK-CycloneDDS8/share/CycloneDDS-CXX/examples/rnr-manager/RnR.hpp:341:10: error:
no viable overloaded '='
m__u = u;
~~~~ ^ ~
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1368:16: note:
candidate function not viable: no known conversion from 'std::string' (aka
'basic_string') to 'const std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(const variant&) = default;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/variant:1369:16: note:
candidate function not viable: no known conversion from 'std::string' (aka
'basic_string') to 'std::variant<DDS::Duration_t, DDS::Time_t,
std::__cxx11::basic_string, std::__cxx11::basic_string >' for
1st argument
variant& operator=(variant&&) = default;

Let me know when will we fix this issue.

With best regards,
Vivek

from cyclonedds-cxx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.