Skip to content

Reconstructing a method piecewise from meta::source #297

@jcelerier

Description

@jcelerier

Hello,
Given for instance

struct(my_metaclass) TheClass {
   [[some_attributes]]
   template<typename A, std::size_t N, typename... Args>
   static constexpr inline auto foo(A a, int arr[N], Args&&... args) 
     /* cv-qual if not static */ 
     /* & / && if not static */
     noexcept(noexcept(false)) 
    -> decltype(a) try {
     return 0;
   } catch(...) {
     return 1;
   }
};

what would be the metaclass code (if possible) that given a meta::info corresponding to foo, would allow to recreate foo exactly as it is - but not by doing -> the_meta_info;, instead by reconstructing it piecewise (in order to have a starting point to make modifications on it).

thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions