Re: undefined type on vs2008 but not vs2010

"Foelsche, Peter via Boost-users" <[email protected]> Thu, 1 Aug 2024 13:46:12 +0000
Newsgroups gmane.comp.lib.boost.user
Message-ID <PH0PR07MB8525E9D5B54894342D18F2CA9AB22@PH0PR07MB8525.namprd07.prod.outlook.com>
Make certain that the C++ standard you’re using is compatible with your boost version.
Make certain that the compiler version you’re using is supported by the boost version you’re using.
Both compilers you’re using are ancient.

From: Boost-users <[email protected]> On Behalf Of Daniel via Boost-users
Sent: Wednesday, July 31, 2024 10:56 PM
To: [email protected]
Cc: Daniel <[email protected]>
Subject: [Boost-users] undefined type on vs2008 but not vs2010

Hi, I'm new to C++, working on an old project using the vs2008 toolset. I need to add some networking and so I started with the docs tutorial "An asynchronous TCP daytime server".

Boost 1.68

Error    C2027    use of undefined type 'boost::_bi::add_cref<Pm,I>'    BoostAsio    d:\downloads\boost_1_68_0\boost\bind\bind.hpp    2323

namespace _bi
{
template< class Pm, int I > struct add_cref;

...

template<class Pm, class A1> struct dm_result
{
    typedef typename add_cref< Pm, 1 >::type type;    <<< 2323
};

Do I need to provide more details?

Thanks

_______________________________________________
Boost-users mailing list
[email protected]
https://lists.boost.org/mailman/listinfo.cgi/boost-users