|
Boost Users : |
Subject: Re: [Boost-users] [units] How to assign "ft" to an si::length?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-20 01:01:12
AMDG
Terry Golubiewski wrote:
> Yep, that's it. Sorry.
> I thought they were equivalent. Hmm.
> Could you please point me to somewhere that explains the difference
> between implicit and explicit construction?
X x = y;
is defined to call the copy constructor of X.
This requires an implicit conversion from y to X.
X x(y);
does normal overload resolution for the constructor.
In Christ,
Steven Watanabe
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