I have the following code:
template<typename... Args> constexpr static const inline int sc(Args&&... args)
{
return scanf(_hidden::fmt< decltype(args+0)... >::result::data,
_hidden::link<decltype(&args),decltype(args+0)>({&args,args}).data...);
}
At the very least, a g ++ compiler without the -O3 flag compiles it to call a function, ignoring the built-in parameter. How can I replace such a complex variational extension with a macro or something else to compile a single scanf call without additional functions using any set of compilers? Just academic interest, in real cases -O3 flag does everything
source
share