On 20.06.2012 22:37, Dmitry Kurochkin wrote:
> Hi all.
>
> C++11 introduced user-defined literals, it breaks some code which
> was valid before. In particular, whitespace is now needed after
> a string literal and before something that could be a valid
> user-defined literal. See "User-defined literals and whitespace"
> section at [1] for more details.
>
> There are many such cases in Squid, e.g.:
>
> outputBuffer.Printf("%"PRIu64"<=%"PRIu64, theGetSize, thePutSize);
>
> Which results in errors when building with GCC 4.7:
>
> error: unable to find string literal operator 'operator"" PRIu64'
>
> The patch adds spaces between string literals and macros.
>
> Regards,
> Dmitry
>
> [1] http://gcc.gnu.org/gcc-4.7/porting_to.html
+1. Beat me to it. I just got this same change building and was about
to submit in a few days :-)
Amos
Received on Thu Jun 21 2012 - 01:13:01 MDT
This archive was generated by hypermail 2.2.0 : Fri Jun 22 2012 - 12:00:08 MDT