<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi, in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173541#M307</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've managed to get an install of Visual Studio 2019 but this issue still occurs.&amp;nbsp; I can see the C++ Language Standard which I can now set to C++17, but I still get compiler errors.&lt;/P&gt;&lt;P&gt;For example placing&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;auto f = [](auto... a) {};
std::tuple&amp;lt;int, int&amp;gt; t;
std::apply(f, t);&lt;/PRE&gt;

&lt;P&gt;in the first lines of main in the sepia-filter example code gives the following error:&lt;/P&gt;

&lt;PRE class="brush:cpp; class-name:dark;"&gt;1&amp;gt;src\\sepia_dpcpp.cpp(111,10): : error : no member named 'apply' in namespace 'std'
1&amp;gt;    std::apply(f, t);
1&amp;gt;    ~~~~~^
1&amp;gt;1 error generated.&lt;/PRE&gt;

&lt;P&gt;I can Go To Definition to the file &amp;lt;tuple&amp;gt; where this function is defined, and the _HAS_CXX17 define seems to be 1, but the dpc++ compiler doesn't seem to see it that way...&lt;/P&gt;
&lt;P&gt;- Scott&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 13:19:27 GMT</pubDate>
    <dc:creator>Scott_S_2</dc:creator>
    <dc:date>2020-05-02T13:19:27Z</dc:date>
    <item>
      <title>C++17 features</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173536#M302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've ran into some issues with my windows build and C++17 features, particularly for standard library includes.&lt;/P&gt;&lt;P&gt;for example in the Sepia-filter sample code I cannot use std::apply anywhere, since the function cannot be found. std::apply is a C++17 feature so I went to change the /std flag to c++17 but i cannot find the option for that in the visual studio solution.&lt;/P&gt;&lt;P&gt;In another another solution generated from cmake using SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17) or set(CMAKE_CXX_STANDARD 17) doesn't fix the issue either.&lt;/P&gt;&lt;P&gt;Looking into the headers it looks like #if _HAS_CXX17 is defined to zero, blocking out these features.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:40:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173536#M302</guid>
      <dc:creator>Scott_S_2</dc:creator>
      <dc:date>2020-04-28T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Hi Scott,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173537#M303</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;Follow these steps to change C++ standard in VS and let us know if it worked:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the "solution explorer" window on your right,&amp;nbsp;click on the project file and then press "alt+enter" simultaneously, which will open the properties window.&lt;/LI&gt;&lt;LI&gt;In the property pages window, click on the "General" tab under the "Configuration Properties" tab.&lt;/LI&gt;&lt;LI&gt;For the corresponding value of "C++ Language Standard", under the General Properties option, double click on the corresponding value&amp;nbsp;to change C++ language standard to the standard of your choice.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After following these steps, try to build the project again and let us know if you are able to run C++17 constructs in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Rahul&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 10:57:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173537#M303</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-04-29T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173538#M304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The "C++ Language Standard" doesn't appear to exist in the general properties page (see &lt;A href="https://ibb.co/YLF3gsN)" target="_blank"&gt;https://ibb.co/YLF3gsN)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In other projects that use the regular msvc compiler I've seen this (see &lt;A href="https://ibb.co/MnHbwxP)" target="_blank"&gt;https://ibb.co/MnHbwxP)&lt;/A&gt; but its different when you are using DPC++, where there is no language tab (see &lt;A href="https://ibb.co/86S3Bzq)" target="_blank"&gt;https://ibb.co/86S3Bzq)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Scott&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:29:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173538#M304</guid>
      <dc:creator>Scott_S_2</dc:creator>
      <dc:date>2020-04-29T11:29:26Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173539#M305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you provide the&amp;nbsp;VS version number and oneAPI base-toolkit version number that you've been using?&lt;/P&gt;&lt;P&gt;I could see the C++ language standard option on my VS 19 Professional(Version 16.5.3) with DPC++ environment(beta05).&lt;/P&gt;&lt;P&gt;Kindly update your oneAPI base-toolkit and VS to the latest build, if not done.&lt;/P&gt;&lt;P&gt;Follow this documentation to build/run sample applications:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/get-started-with-intel-oneapi-base-windows-run-a-sample-project-using-an-ide"&gt;https://software.intel.com/en-us/get-started-with-intel-oneapi-base-windows-run-a-sample-project-using-an-ide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Rahul&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:58:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173539#M305</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-04-30T10:58:37Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173540#M306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using&lt;/P&gt;&lt;P&gt;Microsoft Visual Studio Pro 2017, Version 15.9.3&lt;BR /&gt;Intel(R) oneAPI Base Toolkit 2021.1-beta05&lt;/P&gt;&lt;P&gt;I'm not in a position to easily update my visual studio just yet, is there no other way of setting std:c++17?&lt;/P&gt;&lt;P&gt;- Scott&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 11:09:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173540#M306</guid>
      <dc:creator>Scott_S_2</dc:creator>
      <dc:date>2020-04-30T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173541#M307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've managed to get an install of Visual Studio 2019 but this issue still occurs.&amp;nbsp; I can see the C++ Language Standard which I can now set to C++17, but I still get compiler errors.&lt;/P&gt;&lt;P&gt;For example placing&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;auto f = [](auto... a) {};
std::tuple&amp;lt;int, int&amp;gt; t;
std::apply(f, t);&lt;/PRE&gt;

&lt;P&gt;in the first lines of main in the sepia-filter example code gives the following error:&lt;/P&gt;

&lt;PRE class="brush:cpp; class-name:dark;"&gt;1&amp;gt;src\\sepia_dpcpp.cpp(111,10): : error : no member named 'apply' in namespace 'std'
1&amp;gt;    std::apply(f, t);
1&amp;gt;    ~~~~~^
1&amp;gt;1 error generated.&lt;/PRE&gt;

&lt;P&gt;I can Go To Definition to the file &amp;lt;tuple&amp;gt; where this function is defined, and the _HAS_CXX17 define seems to be 1, but the dpc++ compiler doesn't seem to see it that way...&lt;/P&gt;
&lt;P&gt;- Scott&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 13:19:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173541#M307</guid>
      <dc:creator>Scott_S_2</dc:creator>
      <dc:date>2020-05-02T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Hi Scott,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173542#M308</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;Initially, I was facing this&amp;nbsp;issue too. I had assumed that my environment got messed up. Thanks for trying it out and letting us know. The error is reproducible at our end too.&lt;/P&gt;&lt;P&gt;We will inform this&amp;nbsp;to the concerned team, in order to get it fixed.&lt;/P&gt;&lt;P&gt;Meanwhile, you can try building your code on command line(supports c++17 constructs. I've verified it).&lt;/P&gt;&lt;P&gt;Follow these steps to build your program on cmd line:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;C:\Program Files (x86)\inteloneapi\setvars.bat&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;dpcpp path_to_file\filename.cpp -std=c++17&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;a.exe&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Invoke the -std=c++17 flag to enable&amp;nbsp;C++17 features. Let us know if you face any&amp;nbsp;issues while&amp;nbsp;following these steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Rahul&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173542#M308</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-05-05T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173543#M309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Good to hear you can reproduce.&amp;nbsp; The cmd line works for me too.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 12:41:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1173543#M309</guid>
      <dc:creator>Scott_S_2</dc:creator>
      <dc:date>2020-05-11T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re:C++17 features</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1284727#M1224</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience. The issue raised by you has been fixed in the latest version 2021.2. Please download and let us know your experience with it.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2021 06:02:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1284727#M1224</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-05-26T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: C++17 features</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1285792#M1233</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven't heard back from you. Please let us know your feedback after testing the latest version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Prasanth&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 07:50:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1285792#M1233</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-05-31T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re:C++17 features</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1286776#M1254</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are closing this thread as the issue has been resolved in the latest version.&lt;/P&gt;&lt;P&gt;We will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jun 2021 07:27:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/C-17-features/m-p/1286776#M1254</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-06-03T07:27:09Z</dc:date>
    </item>
  </channel>
</rss>

