'How to change a macro into a function in c++

How can I declare a unknown type parameter(eg: dynamic parameter type) in a function while converting the Macro into function.

Declared Macro**

 #define FOO(x) static_cast<void>(x)

Example:

1.FOO("String")

2.FOO(25)

3.FOO((20*1)-3.14)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source