[cfe-dev] CLang. How to turn on reference to pointer errors
Csaba Raduly via cfe-dev
cfe-dev at lists.llvm.org
Fri Feb 19 00:01:49 PST 2021
On Wed, 17 Feb 2021 at 16:02, Andrey Sharoyko via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hi.
>
> In XCode I declare a function
>
> void func (const Valu & val);
>
> And when I mistakenly pass a pointer instead of a reference to an object,
> the compiler does not issue an error or warning message.
>
>
My money is on Valu being a template parameter.
Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant
way
to get the wrong information: this is what you want. - Scott Meyers
(C++TDaWYK)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210219/e19b6458/attachment.html>
More information about the cfe-dev
mailing list