Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] negating address_configured
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2011-03-04 07:46:30


> On Fri, 4 Mar 2011 13:37:38 +0200, Igor R wrote:
>
> >> What is the correct way to negate the (default) resolver flag,
> > address_configured?
>
> Well, I know nothing about this flag, but in asio sources we find the following:
>
> # if defined(AI_ADDRCONFIG) && !defined(__QNXNTO__)
> address_configured = AI_ADDRCONFIG
> # else
> address_configured = 0
> # endif
>
> So can you just #define AI_ADDRCONFIG 0 ?

I could do but it would be a horrible hack! :o AI_ADDRCONFIG has a
perfectly valid meaning - just not a meaning I wish to invoke. Redeffing
it to do something else strikes me as a bad idea.

Alex

-- 
Easy SFTP for Windows Explorer (http://www.swish-sftp.org)

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net