How to wrap at the template concept?

Answered

I have this template class

        template<uint16_t FrameID, uint16_t FrameByteSize, typename ...Ts> requires(std::is_same_v<dataframe_bit_definition_t, typename Ts::type> &&...)
        struct DataFrame
        {
            std::tuple<Ts...> bit_definitions;
        };

 

And I want to wrap at "requires", something like:

        template<uint16_t FrameID, uint16_t FrameByteSize, typename ...Ts>
requires(std::is_same_v<dataframe_bit_definition_t, typename Ts::type> &&...)
        struct DataFrame
        {
            std::tuple<Ts...> bit_definitions;
        };
1 comment
Comment actions Permalink

Hello!

There is no such setting currently. Feel free to create a feature request in our tracker - https://youtrack.jetbrains.com/issues/CPP.

0

Please sign in to leave a comment.