Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classes in _transforms.h in global namespace #255

Closed
ddale opened this issue Jun 20, 2011 · 1 comment
Closed

Classes in _transforms.h in global namespace #255

ddale opened this issue Jun 20, 2011 · 1 comment

Comments

@ddale
Copy link
Contributor

ddale commented Jun 20, 2011

Original report at SourceForge, opened Wed Nov 14 10:53:52 2007

Hi,

The classes and functions defined in src/_transforms.h are in the global namespace and have fairly generic names (e.g. min, Value). I have encountered one link clash with another class Value when using matplotlib with an external library. Matplotlib linked but failed with a SEGV when it entered the wrong Value code from the other library (not surprisingly!).

I have confirmed this can be fixed by placing the
body of _transforms.h in a "namespace _nc {...}", then
adding "using namespace _nc;" in all src/*.cpp files that include "_transforms.h". Or namespaces could be introduced more cleanly than this.

Thanks for a great package.

AK

SourceForge Comments

On Thu Dec 6 10:54:18 2007, mdboom wrote:

Logged In: YES
user_id=119312
Originator: NO

Just a note -- the _transforms.h/_transforms.cpp stuff is going away in the next release (post 0.91). It still may be worth making your changes on a maintenance release of 0.91, however.

@pelson
Copy link
Member

pelson commented Jul 1, 2012

Closing. This was related to the pre vn1 transform code. (@mdboom was involved in this issue on SF)

@pelson pelson closed this as completed Jul 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants