On Thu, 2016-05-05, Heinz-Mario Frühbeis wrote:
> Am 04.05.2016 um 00:22 schrieb Richard:
>> [Please do not mail me a copy of your followup]
>>
>> =?UTF-8?Q?Heinz-Mario_Fr=c3=bchbeis?= <
D...@Earlybite.individcore.de> spake the secret code
>> <ng9i45$vjn$
1...@news.albasani.net> thusly:
>>
>>> is it possible to store a type in a member variable and to use it again
>>> for a template function?
>>
>> Can you explain more the use case of why you would need to do this?
>>
>> More generally, please describe the goal you are trying to achieve and
>> why you think this specific task is the way to achieve it.
>>
>
> Isn'T it self-declaring?
No. He asked for a use case.
And I suspect he asked because
a) He didn't really understand what you want (I didn't either).
b) If you show your real-life problem, people will be familiar with it
and tell you how they deal with it. It's not unlikely that someone
has a different, better solution.
Do you perhaps have a Python background? People here have experience
mapping Python solutions to C++ solutions, too.
> It would simplify coding, nothing more. It would result in less code...
> Currently I use void* to store a member in a vector and I, if used, cast
> this void-pointer into a template-function. This works, (IMHO) less
> coding...
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/
snipabacken.se> O o .