Path: csiph.com!news.mixmin.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Thu, 08 Dec 2016 14:45:03 -0600 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: absence of max References: <0e1db67d-0ab8-4971-a319-8aa66a40b873@googlegroups.com> <829f496b-0f0d-408c-82b3-8be2bd5775d7@googlegroups.com> <2bba48cd-e2c6-44f1-bce9-eff26acbba50@googlegroups.com> <37a4c69f-07eb-4e03-b548-7348629e6b3c@googlegroups.com> <71c8962e-b06e-44a5-8bda-a79d8cda48e5@googlegroups.com> <71b11aaa-478e-4b1a-9411-e27093a58ab8@googlegroups.com> <87mvgagff0.fsf@bsb.me.uk> <874m2gh2u7.fsf@bsb.me.uk> Date: Thu, 08 Dec 2016 20:45:02 +0000 Message-ID: <87a8c61775.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:aVP6J6qKwwUdJ0+ytZdu1ZTsYJ0= MIME-Version: 1.0 Content-Type: text/plain Lines: 9 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-3YJzR4Nk48afcw2ClJ0Gzr6rCJ94NXxVrfOsMopKdIK1MPICu/1wYGNQUfdS6Av/9nhY4cGxghUm1ze!xG6IGHdMxiEeDwQhXBvolnjBcrTFWkcDvvTBs1vo8MB2sW1QY1WIvsSpR4A5urdH4R9e X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2310 Xref: csiph.com comp.lang.c:98405 jameskuyper@verizon.net writes: > ... and (crucially!) also #include it in the translation unit > where the function is defined. However, that last point is often > neglected by people who don't understand its purpose. One of the annoyances of C++ function overloading is that it prevents this useful diagnostic, often leading to a crypric linker error rather than a clear compiler error.