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

Compilation issues at impl.hpp #55

Open
skinkie opened this issue Feb 10, 2020 · 0 comments
Open

Compilation issues at impl.hpp #55

skinkie opened this issue Feb 10, 2020 · 0 comments

Comments

@skinkie
Copy link

skinkie commented Feb 10, 2020

At https://github.com/jonnydee/nzmqt/blob/master/include/nzmqt/impl.hpp#L87 I get an error in compiling using G++ 9.2.0.

Instead of QByteArray(data(), int(size())) the following seems to do the job:
QByteArray((char *) data(), int(size()))

./nzmqt/impl.hpp: In member function 'QByteArray nzmqt::ZMQMessage::toByteArray()':
./nzmqt/impl.hpp:90:43: error: expected primary-expression before '(' token
   90 |      return size() <= INT_MAX ? QByteArray(data<char>(), int(size())) : QByteArray();
      |                                           ^
./nzmqt/impl.hpp:90:49: error: expected primary-expression before 'char'
   90 |      return size() <= INT_MAX ? QByteArray(data<char>(), int(size())) : QByteArray();
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

1 participant