language: C++ 4.7.2 (gcc-4.7.2)
date: 731 days 17 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
21
#include <iostream>
#include <boost/static_assert.hpp>
 
template<typename T>
std::ostream & operator<<(std::ostream & stream, T* value) {
    BOOST_STATIC_ASSERT(false);
}
 
namespace asdf {
    void qwerty() {
        int foo = 5;
        int * bar = &foo;
 
        std::cout << bar << std::endl;        
    }
}
 
int main() {
    asdf::qwerty();
}
 
prog.cpp: In function ‘std::ostream& operator<<(std::ostream&, T*)’:
prog.cpp:6: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
prog.cpp:7: warning: no return statement in function returning non-void