GSI Forum - RDF feed
https://forum.gsi.de/index.php
The power of templates!
https://forum.gsi.de/index.phpindex.php?t=rview&goto=1560&th=547#msg_1560
Compile-time task.
It could be useful for someone:
template<typename A, typename B>
class isd
{
class no{};
class yes{no[2]};
static yes test(B*);
static no test(...);
public:
enum {is=sizeof(test(static_cast<A*>(0)))==sizeof(yes)};
};
Just read the code..........................
Now you understand what this code is made for?! Do you see the power?!