language: C++ 4.7.2 (gcc-4.7.2)
date: 776 days 10 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
 
struct any
{
    template <typename T>
    any(const T&)
    {}
};
 
void foo()
{
    std::cout << "void works too" << std::endl;
}
 
any x = std::cout << "mmk" << std::endl;
any y = (foo(), 0);
 
int main()
{
}