Registered Member
|
Hi Everyone,
I have compilation error with this code on 3.3.1:
Error messages are as follows:
It was working on 3.2.9. I'm using gcc version 5.4.0 on Ubuntu(x86_64-linux-gnu). Could you give me some advice on this? Thank you very much in advance! Hiroshi |
Moderator
|
This is because in 3.3 we had to introduce a generic ctor:
that prevents your conversion operator to be called. On the other hand, since this generic ctor is explicit, you can easily workaround with:
|
Registered Member
|
I could successfully compile my code. Thank you very much for the help!
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]