[ create a new paste ] login | about

Link: http://codepad.org/OxEcCjHk    [ raw code | fork ]

DigitalGhost - C++, pasted on Feb 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <boost/utility/result_of.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/mpl/assert.hpp>

struct foo {
  template<typename T>
  struct result;
};

template<>
struct foo::result<foo(int)> {
  typedef void type;
};

namespace bst = boost;

BOOST_MPL_ASSERT((bst::is_same<void, bst::result_of<foo(int)>::type>));

int main() {}


Output:
No errors or program output.


Create a new paste based on this one


Comments: