Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2024-07-10 09:50:36


On 7/10/24 12:31, Bhuyan, Jyotideep via Boost wrote:
> Hello,
>
> I am updating my code from boost version 1.78 to boost 1.85. and facing build issues "error C2766: explicit specialization; 'boost::core::detail::tn_holder<unsigned short>' has already been defined"
>
> Below is the error that I am facing that needs your help. I could not find any code or direct header file inclusion in my code related to the below error.
>
> C:\<my boost>\boost_1_85\boost\boost\core\type_name.hpp(354,2): error C2766: explicit specialization; 'boost::core::detail::tn_holder<unsigned short>' has already been defined.
> C:\<my boost>\boost_1_85\boost\boost\core\type_name.hpp(273): message : see previous definition of 'tn_holder<unsigned short>
>
>
> Please note that after upgrading to boost 1.85, the compiler was not able to find "#include <boost/function/detail/prologue.hpp>", I checked this file is not present in the new version. Hence, I have commented header file inclusion in my code.
>
> I am building the code for MSVC142 (C++14) for 64-bit Windows 10 architecture.

I think it has already been reported and fixed:

https://github.com/boostorg/core/issues/173

> Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
>
> Confidential - Company Proprietary

I'm ignoring any such notices. Please remove them in your future public
posts.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk