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

Problems compiling with _GLIBCXX_DEBUG defined #235

Closed
gajanak opened this issue Oct 3, 2017 · 1 comment
Closed

Problems compiling with _GLIBCXX_DEBUG defined #235

gajanak opened this issue Oct 3, 2017 · 1 comment

Comments

@gajanak
Copy link

gajanak commented Oct 3, 2017

If _GLIBCXX_DEBUG is defined, compiling with gcc 7.1 results in something like :

error: reference to 'vector' is ambiguous

sample:

#define _GLIBCXX_DEBUG 
#include <boost/di.hpp>

#include <string>
#include <vector>

std::vector<std::string> m_params;

int main() {
}

Reason is the fwd declaration in di.hpp line 83-98 which doesnt match to the debug Version of STL coming with gcc.

template <class, class>
class vector;

I reproduced this with gcc 7.1.0 from https://wandbox.org/# .

Hope this helps someone else too.

@kris-jusiak
Copy link
Collaborator

Fixed by #259

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