global-namespace Questions

9

Solved

I found this line of a code in a class which I have to modify: ::Configuration * tmpCo = m_configurationDB;//pointer to current db and I don't know what exactly means the double colon prepended ...

4

Solved

So I know any header from the C Compatability Headers: Places in the global namespace each name that the corresponding cxxx header would have placed in the std namespace I also know that...
Lubalubba asked 24/7, 2018 at 14:6

3

Consider the following (buggy) C++ code: #include <cmath> #include <cstdlib> #include <iostream> int main() { if (abs(-0.75) != 0.75) { std::cout << "Math is broken!\n"...
Ardy asked 13/7, 2017 at 17:55

1

Solved

My requirement might seem like awful practice, but none the less I would like to know if it's doable. I'm using composer to autoload my classes. In one of the class files, I want to define a funct...
Burnett asked 6/8, 2015 at 5:6

1

Examples such as enabling outputting of std types explain how ADL can be used to "inject" a certain function/operator, depending on the type the fn/op is applied to. I was wondering wheter ADL ful...

3

I know how to write Meteor packages but I can't seem to figure out how to have all exports land in my app's namespace, as described in this presentation. This particular package is specific to an ...

1

Solved

in my code, I have: class A: def a(): ...... def b(): a() ...... b() Then the compiler will say "NameError: global name a() is not defined." If I pull all the stuffs out of the clas...
Artair asked 9/7, 2013 at 20:5

4

Solved

While reading from Bruce Eckel's "Thinking in C++" about namespaces, I encountered the following statement: However you'll virtually never see a using directive in a header file (at least not ...
Octan asked 2/2, 2011 at 8:50

2

I'm currently on a project that is a big site that uses the Prototype library, and there is already a humongous amount of Javascript code. We're now working on a piece of code that will get "inje...
Suppress asked 5/8, 2009 at 2:56
1

© 2022 - 2024 — McMap. All rights reserved.