boostorg / contract

Contract programming for C++
http://www.boost.org/doc/libs/develop/libs/contract/doc/html/index.html
Boost Software License 1.0
40 stars 27 forks source link

non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'boost::contract::detail::checking' #23

Closed jeking3 closed 5 years ago

jeking3 commented 5 years ago

This is from a teeks msvc 14.2 build that boost-ci doesn't have in it yet. Likely all other windows builds are issuing the same warning however.

https://www.boost.org/development/tests/master/developer/output/teeks99-07-v16ml-64onAMD64-boost-bin-v2-libs-contract-test-specify-auto_error-test-msvc-14-2-dbg-adrs-mdl-64-thrd-mlt.html

D:\teeks99-07\run\boost_root\boost/contract/detail/checking.hpp(26): warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class 'boost::contract::detail::checking'
D:\teeks99-07\run\boost_root\boost/core/noncopyable.hpp(38): note: see declaration of 'boost::noncopyable_::noncopyable'
D:\teeks99-07\run\boost_root\boost/contract/detail/checking.hpp(24): note: see declaration of 'boost::contract::detail::checking'
lcaminiti commented 5 years ago

I fixed quite a few warnings in develop (but I haven't merged into master yet). Looking at the test matrix for develop I don't see warning for msvc-14.2: https://www.boost.org/development/tests/develop/developer/contract.html The link above is from master. Is the warning C4275 above from develop or master?

jeking3 commented 5 years ago

Looks like it was from master.

lcaminiti commented 5 years ago

This should be fixed in develop.