J
Johannes Schaub (litb)
I'm wondering about this one:
struct ALongAndComplexTypeName {
explicit A(int);
};
/* Possibly intermixed with enable_if huh */
ALongAndComplexTypeName f() {
return {5};
}
I would like to do something like that to avoid having to repeat the return
type name. Since return value copying forbids using explicit copy
constructors, the above will fail. Is there any work around?
struct ALongAndComplexTypeName {
explicit A(int);
};
/* Possibly intermixed with enable_if huh */
ALongAndComplexTypeName f() {
return {5};
}
I would like to do something like that to avoid having to repeat the return
type name. Since return value copying forbids using explicit copy
constructors, the above will fail. Is there any work around?