Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Invalid handling of newlines in raw string literals

$
0
0

Given the following test code compiled with Intel C++ Compiler XE 14.0

#include "stdafx.h"
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    auto raw = LR"(1
2)";

    std::wcout << raw << endl;
    return 0;
}

the actual output on the console is

1\n2

expected output

1
2

Is this a bug in the compiler?


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>