-
Notifications
You must be signed in to change notification settings - Fork 111
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
Compile Error In visual studio 2017 #919
Comments
On clang++ (13.0.1) mqtt_cpp/include/mqtt/config.hpp Lines 12 to 29 in f1ebfbf
mqtt_cpp set to the limit list size to 40 if it is not defined. Those information might help you to analyze the problem. |
Perhaps, insert #include <mqtt/variant.hpp> into the top of your source code (cpp file) might solve the error. If it is solved please let me know the current include information. |
Yes, It works. ths |
another puzzle, what's the difference mqtt_cpp-12.0.0 and mqtt_cpp-master? |
Oh really, I need your source code (mqtt_cpp include part) to fix the issue. So far, I only know the error code. I cant't fix it. Maybe mqtt_cpp/include/mqtt/client.hpp Line 10 in f1ebfbf
mqtt_cpp/include/mqtt_client_cpp.hpp Line 7 in f1ebfbf
are related. |
You can compare by yourself |
Ok, ths. mqtt/will.hpp:47:23: error:enclosing class of constexpr non-static member function ‘mqtt::buffer& mqtt::will::topic()’ is not a literal type |
as document said "It requires C++14 and the Boost Libraries 1.67.0 or later.", but when comiple in VS (with boost1.68+cpp14), I get serveal errors.
boost_1_68_0\boost\variant\detail\make_variant_list.hpp(40): error C2977: “boost::mpl::list”:
boost_1_68_0\boost\variant\detail\make_variant_list.hpp(40): error C2955: “boost::mpl::list”:
Only when I define MQTT_STD_VARIANT with cpp17, I can compile sucess.
The text was updated successfully, but these errors were encountered: