<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16291/bug-report-sdk-v12-c-issue-in-peer_manager_types-declaration</link><description>Hello, 
 I&amp;#39;m currently porting all my C++ code from SD130 SDK10 to SD132 SDK12 and I also upgrading from device_manger to peer_manager. 
 I&amp;#39;ve noticed that in peer_manager_types.h file there is a declaration with an empty array: 
 /**@brief Data on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Sep 2016 08:47:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16291/bug-report-sdk-v12-c-issue-in-peer_manager_types-declaration" /><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62263?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 08:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07bdcaa7-fcc0-40bc-a3c6-db52fb1e06c9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Technically this is not a bug, as SDK only supports C99 compilers officially for now. But we cannot ignore other compiler users, so I updated list in &lt;a href="https://devzone.nordicsemi.com/question/71366/what-are-sdk-1100-known-issues/"&gt;SDK11&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/question/93241/what-are-sdk-1200-known-issues/"&gt;SDK12&lt;/a&gt; known issues  with this thread&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62262?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 07:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb885164-ed33-452f-936f-972078177279</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;hi Patrice, this could be an oversight, i will inform the designer to change it but i cannot create any ticket on it. I hope this is ok.&lt;/p&gt;
&lt;h2&gt;update:&lt;/h2&gt;
&lt;p&gt;just talked to the developer and he will change this member to &lt;code&gt;data[1];&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62260?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 07:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673b1948-460c-4ad4-a399-7d5a26ca408f</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Thanks Aryan for your comment...
By the way, you Nordic guys have changed this in the header files of the SoftDevice API (ble_gattc.h, ble_gatts.h &amp;amp; ble_l2cap.h) from SDK10 to SDK11 in the same way I did here for the peer_manager module. That&amp;#39;s why I thought it was an oversight...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62261?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 07:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16ce8e99-ea1c-4ca7-9a5a-54ed431a586a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It seems like this is C99 feature only. Some compilers might optionally add this feature but it &lt;code&gt;seems not so common. Peer manager header files did not add support for CPP by adding&lt;/code&gt;#ifdef __cplusplus`, so they are not compiled and tested with any CPP compilers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62259?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 06:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c218c67-26fb-46da-bb21-2aa1877b22c0</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Yes of course @Keton, we can set it as a pointer... I&amp;#39;ve fixed this problem with an array of 1 element just to respect you way it&amp;#39;s done in all other header&amp;#39;s files, like &lt;code&gt;ble_gattc.h&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bug report] SDK v12 C++ issue in peer_manager_types declaration</title><link>https://devzone.nordicsemi.com/thread/62258?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 19:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b814b914-0dae-440d-8b72-8626720ea774</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;It may be my poor understanding of C but wasn&amp;#39;t it meant for data to be an array pointer so it should corrected to &lt;code&gt;uint8_t* data&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>