<?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 Problem using Classes inside enclave in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Problem-using-Classes-inside-enclave/m-p/1094800#M935</link>
    <description>&lt;P&gt;I want to write a class inside enclave. I couldn't find any sample code about it. Is there any special syntax for defining Class functions, Constructors and Destructors in edl files? I tried to define them as trusted using the same syntax as regular functions but I'm getting "Invalid token" error. Can someone give me an example of using classes inside a enclave?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 16:02:15 GMT</pubDate>
    <dc:creator>tz71</dc:creator>
    <dc:date>2016-06-13T16:02:15Z</dc:date>
    <item>
      <title>Problem using Classes inside enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Problem-using-Classes-inside-enclave/m-p/1094800#M935</link>
      <description>&lt;P&gt;I want to write a class inside enclave. I couldn't find any sample code about it. Is there any special syntax for defining Class functions, Constructors and Destructors in edl files? I tried to define them as trusted using the same syntax as regular functions but I'm getting "Invalid token" error. Can someone give me an example of using classes inside a enclave?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:02:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Problem-using-Classes-inside-enclave/m-p/1094800#M935</guid>
      <dc:creator>tz71</dc:creator>
      <dc:date>2016-06-13T16:02:15Z</dc:date>
    </item>
    <item>
      <title>While you may use C++ classes</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Problem-using-Classes-inside-enclave/m-p/1094801#M936</link>
      <description>&lt;P&gt;While you may use C++ classes inside an enclave, EDL will not allow you to define trusted functions as class methods.&amp;nbsp; The ECall Bridge functions (functions which the Edger8r generated code calls for you&amp;nbsp; when you enter the enclave) must be native C and will subsequently call C functions that you must implement.&amp;nbsp; The C function that you implement may subsequently make a call to a class method within a class that you have instantiated within the enclave.&lt;/P&gt;

&lt;P&gt;EDL also does not support passing class objects across enclave boundaries.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 21:10:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Problem-using-Classes-inside-enclave/m-p/1094801#M936</guid>
      <dc:creator>Mark_S_Intel2</dc:creator>
      <dc:date>2016-06-13T21:10:14Z</dc:date>
    </item>
  </channel>
</rss>

