Re: re:question about compile the bo ost head file.

Emil Dotchevski via Boost-users <[email protected]>
Newsgroups gmane.comp.lib.boost.user
Message-ID <CAN5fK5EHLNpUwe5KvbLKd5edaDb4CRkmAtMtxgg-jDr_qXk5Ug@mail.gmail.com>
На нд, 21.08.2022 г. в 7:39 ч. xiongzhiyong via Boost-users <
[email protected]> написа:

> >I can't reproduce this with msvc versions available on godbolt:
> >https://godbolt.org/z/E8vYWTPf6
>  Exactly on godbolt,the compilers work well. I test this by myself.
> Once again, I change to the Microsoft Visual Studio Community 2019
> ver. 16.11.18. And compile the program ,the error still exist.
>
> >Can you provide a complete error log, including source file and line of
> the
> >error?
>
> soruce file:info.hpp
> source code line no:145
> soruce code:error_info_container_impl * c=new error_info_container_impl;
> error log:
> C2259    “boost::exception_detail::error_info_container_impl”: cannot
> instantiate abstract class, test_boost
> D:\boost_1_79_0\boost\exception\info.hpp    145
>

Can you write a simple program that demonstrates the problem on godbolt.org?
Looking at the source code, I don't understand why the error_info_container
class would be abstract.

_______________________________________________
Boost-users mailing list
[email protected]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.