#include <stdio.h>
template
<
typename
Type
>
Type foo
(
Type arg
)
{
struct
Bar
{
Type value
;
}
;
Bar var
;
var.
value
=
arg
;
return
var.
value
;
}
int
main
(
)
{
printf
(
"Result is: %i
\n
"
, foo
<
int
>
(
3
)
)
;
return
0
;
}