<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unicode in the Preprocessor]]></title><description><![CDATA[<p>Hello.</p>
<p>I decided to make my code look better by the following trick:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

#define [e]le[/e] &lt;=
#define [e]ge[/e] &gt;=
#define [e]equiv[/e] ==
#define [e]rarr[/e] -&gt;
#define [e]ne[/e] !=

struct test
{
	double a,b;
};

int main(int const argc, char const *const *const argv)
{
	test *x = new test;
	x [e]rarr[/e] a = 0.5;
	x [e]rarr[/e] b = 1.0;

	if( x [e]rarr[/e] a [e]le[/e] x [e]rarr[/e] b ) std::cout &lt;&lt; &quot;Good&quot; &lt;&lt; std::endl;
}
</code></pre>
<p>This compile and works well. But I am worry about is this comply with C++ standard??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223055/unicode-in-the-preprocessor</link><generator>RSS for Node</generator><lastBuildDate>Sun, 04 Oct 2026 06:22:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223055.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Sep 2008 15:29:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unicode in the Preprocessor on Sun, 21 Sep 2008 15:32:34 GMT]]></title><description><![CDATA[<p>Hello.</p>
<p>I decided to make my code look better by the following trick:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

#define [e]le[/e] &lt;=
#define [e]ge[/e] &gt;=
#define [e]equiv[/e] ==
#define [e]rarr[/e] -&gt;
#define [e]ne[/e] !=

struct test
{
	double a,b;
};

int main(int const argc, char const *const *const argv)
{
	test *x = new test;
	x [e]rarr[/e] a = 0.5;
	x [e]rarr[/e] b = 1.0;

	if( x [e]rarr[/e] a [e]le[/e] x [e]rarr[/e] b ) std::cout &lt;&lt; &quot;Good&quot; &lt;&lt; std::endl;
}
</code></pre>
<p>This compile and works well. But I am worry about is this comply with C++ standard??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1585594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1585594</guid><dc:creator><![CDATA[SAn]]></dc:creator><pubDate>Sun, 21 Sep 2008 15:32:34 GMT</pubDate></item></channel></rss>