Skip to content

Instantly share code, notes, and snippets.

View avrono's full-sized avatar
💭
Experimenting ....

Avron Olshewsky avrono

💭
Experimenting ....
View GitHub Profile
@avrono
avrono / code.md
Last active November 16, 2019 00:25

This shows how to use varadic function call with template specialisation to call a function with any number of parameters. This example compiles on CLANG but not on GCC. Original thanks to @the4thAmigo-uk https://gist.github.com/the4thamigo-uk/0af9d356253f560d6e36c98224be5958.js

GCC returns the following error : error: explicit specialization in non-namespace scope 'class Policy' As far as I can tell this is a bug in GCC (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282).

struct X {};
struct Y {};
### Keybase proof
I hereby claim:
* I am avrono on github.
* I am avronolsh (https://keybase.io/avronolsh) on keybase.
* I have a public key ASB6hJCLD0wgKDpc77euKRJAtVF_hTEVVQ_fGMZTS6HMDAo
To claim this, I am signing this object: