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

Fails to compile with znc 1.5 #42

Open
fred0r opened this issue Nov 7, 2014 · 2 comments
Open

Fails to compile with znc 1.5 #42

fred0r opened this issue Nov 7, 2014 · 2 comments

Comments

@fred0r
Copy link

fred0r commented Nov 7, 2014

Building module colloquy...
colloquy.cpp: In member function ‘bool CColloquyMod::Push(const CString&, const CString&, const CString&, bool, int)’:
colloquy.cpp:778:58: error: invalid initialization of reference of type ‘std::vector<CClient*>&’ from expression of type ‘const std::vector<CClient*>’
make[1]: *** [colloquy.o] Fehler 1
make: *** [modules] Fehler 2

:*(

@cbenard
Copy link

cbenard commented Jan 5, 2015

@fred0r I fixed it by putting const before the vector declaration. The fixed line for ZNC 1.5 is:

const vector<CClient*>& vpClients = GetNetwork()->GetClients();

I was able to compile fine then.

@maxux
Copy link

maxux commented Jan 17, 2015

Same for me, @cbenard fix works. Thanks.

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

3 participants