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

How to Declare Tick class as friend #19

Open
IkoLogs opened this issue Mar 25, 2019 · 0 comments
Open

How to Declare Tick class as friend #19

IkoLogs opened this issue Mar 25, 2019 · 0 comments

Comments

@IkoLogs
Copy link

IkoLogs commented Mar 25, 2019

Hi

I want my tick trait class to have private access to its argument T type.

So i need to declare my tick triat class as friend of T.

How do i do that , cause not sure what the ecat class prototype would be for tick class cause i use the Macro

example
`TICK_TRAIT(My_Trait)
{
    template<class T_SomeType>
    auto require(T&& x) -> valid<
        decltype(T_SomeType::SomeFunc()) 
    >;
};`
class SomeClass{

private:
friend My_Trait<SomeClass>;
SomeFunc(){}
}

In summary need to declare Tick class as friend of SomeClass
Thanks

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

No branches or pull requests

1 participant