monjardin said:
Are we talking about the same thing? I've checked it with gcc and _both_ compile just fine ...
Posted 27 May 2006 - 07:56 PM
monjardin said:
Posted 27 May 2006 - 08:02 PM
Posted 27 May 2006 - 08:02 PM
bramz said:
#include <iostream>
namespace someNamespace
{
void someIdentifier(int a)
{
std::cout << a << std::endl;
}
}
namespace
{
int someIdentifier = 1;
}
void a() // prints 1
{
someNamespace::someIdentifier(someIdentifier);
}
void b() // prints 2
{
using someNamespace::someIdentifier;
someIdentifier(2);
}
int main()
{
a();
b();
return 0;
}
Posted 27 May 2006 - 08:04 PM
monjardin said:
Posted 27 May 2006 - 08:06 PM
template<class T> T func()
{
return someOtherFunc<T>();
}
Posted 27 May 2006 - 08:12 PM
.oisyn said:
Posted 27 May 2006 - 08:30 PM
#include <iostream>
void someIdentifier(int a)
{
std::cout << a << std::endl;
}
namespace
{
int someIdentifier = 1;
}
int main()
{
someIdentifier = 2; // oh bugger
}
Posted 27 May 2006 - 09:03 PM
Posted 27 May 2006 - 09:30 PM
Posted 27 May 2006 - 10:30 PM
poita said:
Posted 27 May 2006 - 11:24 PM
bramz said:
Posted 28 May 2006 - 08:18 AM
.oisyn said:
Quote
Posted 28 May 2006 - 10:41 AM
Posted 28 May 2006 - 11:23 AM
juhnu said:
Quote
Posted 28 May 2006 - 11:43 AM
Posted 28 May 2006 - 01:02 PM
Axel said:
Quote
Axel said:
Posted 28 May 2006 - 01:26 PM
juhnu said:
Posted 28 May 2006 - 01:32 PM
Axel said:
0 members, 3 guests, 0 anonymous users