Boost logo

Boost :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-05-20 20:46:25


At 17:34 2005-05-20, you wrote:
>Hi,
>
>Is there any good reason that VC++ is set to warn about
>ADL by default?
>
>Otherwise, we should put the equivalent of
> <toolset>msvc <cxxflags>/wd4675
>
>into the main configuration for those compilers

vc-7_1 (details availalbe from the RudbekAssociates link on the regression
tests)
compiled manually with /W4:

int abc (int x) {return x;}
double abc(double y) {return y;}

int main()
{
         int j = abc(3);
         double r = abc(3.14);
         return j + r;
}

------ Build started: Project: Thorsten, Configuration: Debug Win32 ------

Compiling...
Thorsten.cpp
c:\Projects\Programming\BoostEFnetPeople\Thorsten\Thorsten.cpp(8) : warning
C4244: 'return' : conversion from 'double' to 'int', possible loss of data

Build log was saved at
"file://c:\Projects\Programming\BoostEFnetPeople\Thorsten\Debug\BuildLog.htm"
Thorsten - 0 error(s), 1 warning(s)

I see no warnings about ADL

---------------------- Done ----------------------

     Build: 1 succeeded, 0 failed, 0 skipped

>-Thorsten
>
>--
>Thorsten Ottosen
>----------------------------
>www.dezide.com
>http://www.cs.aau.dk/index2.php?content=Research/mi
>www.boost.org
>www.open-std.org/JTC1/SC22/WG21/
>
>
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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