All pastes #840469 Raw Edit

const_namespace

public cpp v1 · immutable
#840469 ·published 2007-12-31 22:25 UTC
rendered paste body
#include <iostream>using namespace std;namespace test {    int foo() { return 0; }} const// remove the const above and it compiles, as it should.namespace test {    int bar() { return 0; }}int main(int argc, char ** argv){    test::foo();    test::bar();    return 0;}