I have a simple object that contains some [public] data.
I want my interface to be clean, so I donβt want to pre / post-fix anything by the names of public variables or the argument names of my function.
However, I ended up doing something like this:
template<typename T> struct Foo
{
explicit Foo(T x) : x(x)
{
}
T x;
};
Just to repeat: all I ask is how well defined it is. Should I not do this or should not do this ...
Thank.
source
share