<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/loki-lib/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/loki-lib/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 06 Aug 2015 11:31:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/loki-lib/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Loki not supported for Visual studio 2013</title><link>https://sourceforge.net/p/loki-lib/feature-requests/38/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Currently am using Visual studio 2013 and am not able to build loki with visual studio 2013 . Require support for building loki using VS 2013&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Salma</dc:creator><pubDate>Thu, 06 Aug 2015 11:31:21 -0000</pubDate><guid>https://sourceforge.net6c92db2cf8bbf87cf8b42b032054e1a83a435ebe</guid></item><item><title>Improvement for ScopeGuard</title><link>https://sourceforge.net/p/loki-lib/feature-requests/37/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;short version:&lt;br /&gt;
I ask for a LOKI_ON_BLOCK_EXIT that does not emit a compiler warning about an unused variable on GCC and MSVC.&lt;/p&gt;
&lt;p&gt;long version:&lt;br /&gt;
one use of ScopeGuard is as a convenient RAII "cleanup" mechanism, that is without calling "Dismiss()" later.&lt;br /&gt;
The problem then is that GCC and MSVC emit compiler warnings about an unused variable.&lt;br /&gt;
This happens both when using a dummy variable without dismissing it and more critically when using "LOKI_ON_BLOCK_EXIT", which is specifically designed for that purpose.&lt;/p&gt;
&lt;p&gt;As seen here, others have been looking for an answer, but with little success:&lt;br /&gt;
&lt;a href="http://stackoverflow.com/questions/219770/dealing-with-c-initialized-but-not-referenced-warning-for-destruction-of-scop" rel="nofollow"&gt;http://stackoverflow.com/questions/219770/dealing-with-c-initialized-but-not-referenced-warning-for-destruction-of-scop&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For GCC, there is a nice and simple solution which could be implemented by the Loki library:&lt;br /&gt;
replace:&lt;br /&gt;
typedef const ScopeGuardImplBase&amp;amp; ScopeGuard;&lt;br /&gt;
by&lt;br /&gt;
__attribute__((unused)) typedef const ScopeGuardImplBase&amp;amp; ScopeGuard;&lt;/p&gt;
&lt;p&gt;Unfortunately there is no MSVC equivalent.&lt;/p&gt;
&lt;p&gt;Now with C++11, there might be light at the end of the tunnel:&lt;br /&gt;
One way to silence the warning about unused variable in both GCC and MSVC is to get rid of the const-reference:&lt;br /&gt;
typedef const ScopeGuardImplBase&amp;amp; ScopeGuard; -&amp;gt; typedef ScopeGuardImplBase ScopeGuard;&lt;br /&gt;
It's clear that this creates problems for the general ScopeGuard case where the type is dependent from the number and types of arguments passed. But for LOKI_ON_BLOCK_EXIT, this shouldn't matter.  What's still missing is a way to "pass the value without copying". Here C++11 r-value-refences are the fitting solution.&lt;/p&gt;
&lt;p&gt;You see, there are a few open questions, but my hope is that they can be figured out eventually.&lt;/p&gt;
&lt;p&gt;Best regards, ZenJu&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zenju</dc:creator><pubDate>Fri, 09 Sep 2011 10:42:46 -0000</pubDate><guid>https://sourceforge.net33b70692f708e48cc350d54fa007e25aa7d054a5</guid></item><item><title>Include a text copy of the license</title><link>https://sourceforge.net/p/loki-lib/feature-requests/34/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The source code should include a text copy of the license under loki-lib is released&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Pascual</dc:creator><pubDate>Fri, 09 Jul 2010 20:54:27 -0000</pubDate><guid>https://sourceforge.netfc6cf02ee6aaa9c462dc61df69406bb960f8e221</guid></item><item><title>File Include variant</title><link>https://sourceforge.net/p/loki-lib/feature-requests/33/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Rich,&lt;/p&gt;
&lt;p&gt;&amp;gt; If you have further questions, please feel free to add them here.&lt;br /&gt;
Hopefully this doesn't seem like spamming, but you checked "Close comment posting" for the other ticket, so I need to create a new one ;)&lt;br /&gt;
Reference: &lt;a href="https://sourceforge.net/tracker/?func=detail&amp;amp;atid=396647&amp;amp;aid=2989216&amp;amp;group_id=29557"&gt;https://sourceforge.net/tracker/?func=detail&amp;amp;atid=396647&amp;amp;aid=2989216&amp;amp;group_id=29557&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt; potential ambiguity&lt;br /&gt;
With "" There is a fixed sequence in which the preprocessor looks for the file. It first starts searching in the directory that holds the sourcefile using an "#include". If it is found, it stops, so there is no ambiguity for users.&lt;/p&gt;
&lt;p&gt;So from a library user's point of view using "" doesn't seem to introduce any drawbacks, but at least saves one precondition (project include path). Looking at the style of the library as a whole, avoiding dependencies seems to be a major design goal?&lt;/p&gt;
&lt;p&gt;Regards, ZenJu&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zenju</dc:creator><pubDate>Tue, 20 Apr 2010 08:21:24 -0000</pubDate><guid>https://sourceforge.netb15a2b8697eb4c8e7fbd2365098d34f3454899ab</guid></item><item><title>File Include variant</title><link>https://sourceforge.net/p/loki-lib/feature-requests/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is regarding ticket:&lt;br /&gt;
&lt;a href="https://sourceforge.net/tracker/?func=detail&amp;amp;atid=396644&amp;amp;aid=2987337&amp;amp;group_id=29557"&gt;https://sourceforge.net/tracker/?func=detail&amp;amp;atid=396644&amp;amp;aid=2987337&amp;amp;group_id=29557&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If using either of the following two styles is equivalent from Loki implementation point of view:&lt;br /&gt;
#include "File.h"&lt;br /&gt;
#include &amp;lt;loki/File.h&amp;gt;&lt;/p&gt;
&lt;p&gt;Then I kindly ask for using the first style internally. The advantage would be to save the user from needing a project-global Include like "#include C:\LokiParentDir".&lt;br /&gt;
Instead one could include any of the Loki files directly without further prerequisites.&lt;br /&gt;
On the other hand the user could still use a project-global include to enable the "#include &amp;lt;loki/somefile.h&amp;gt; syntax for his projects. So the user of the library would have both options which is very flexible.&lt;/p&gt;
&lt;p&gt;Regards, ZenJu&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zenju</dc:creator><pubDate>Mon, 19 Apr 2010 08:16:14 -0000</pubDate><guid>https://sourceforge.net50ae0f710a3b2e26fff2ffd41ec3ea1a4dd0bbd2</guid></item><item><title>[threads] improving atomic ops.</title><link>https://sourceforge.net/p/loki-lib/feature-requests/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;the current loki uses for AtomicIncrement/Decrement winapi critical sections or pthread mutexes.&lt;br /&gt;
this can be done faster:&lt;br /&gt;
- with winapi: InterlockedIncrement/Decrement&lt;br /&gt;
- with gcc: __sync_add/sub_and_fetch ) builtins that are translated into e.g. xadd opcode on x86.&lt;/p&gt;
&lt;p&gt;#ifdef _MSC_VER&lt;br /&gt;
#include &amp;lt;windows.h&amp;gt;&lt;br /&gt;
#endif&lt;/p&gt;
&lt;p&gt;long increment( long&amp;amp; counter )&lt;br /&gt;
{&lt;br /&gt;
return ::InterlockedIncrement( &amp;amp;counter );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;long decrement( long&amp;amp; counter )&lt;br /&gt;
{&lt;br /&gt;
return ::InterlockedDecrement( &amp;amp;counter );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;#elif ( __GNUC__ == 4 ) &amp;amp;&amp;amp; ( __GNUC_MINOR__ &amp;gt;= 1 )&lt;/p&gt;
&lt;p&gt;long increment( long&amp;amp; counter )&lt;br /&gt;
{&lt;br /&gt;
return __sync_add_and_fetch( &amp;amp;counter, 1 );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;long decrement( long&amp;amp; counter )&lt;br /&gt;
{&lt;br /&gt;
return __sync_sub_and_fetch( &amp;amp;counter, 1 );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;#else&lt;/p&gt;
&lt;p&gt;// legacy implementation with mutextes.&lt;/p&gt;
&lt;p&gt;#endif&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pawel Sikora</dc:creator><pubDate>Sun, 01 Feb 2009 21:05:07 -0000</pubDate><guid>https://sourceforge.net96829be4753530fdec8c1207ef6e62672a02b490</guid></item><item><title>Alternate Functor Implementation</title><link>https://sourceforge.net/p/loki-lib/feature-requests/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is the zipped Alternate Functor Implementation code, as described in my topic of the same name.  This is the same as I originally pasted, so the same notes apply.&lt;br /&gt;
-Matt Elkins&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthew Elkins</dc:creator><pubDate>Sat, 31 Jan 2009 15:36:05 -0000</pubDate><guid>https://sourceforge.net178b43faa682194327301ad743b18727c81fd449</guid></item><item><title>Function and Bind</title><link>https://sourceforge.net/p/loki-lib/feature-requests/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://sourceforge.net/forum/forum.php?thread_id=1706311&amp;amp;forum_id=93009"&gt;https://sourceforge.net/forum/forum.php?thread_id=1706311&amp;amp;forum_id=93009&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Kuemmel</dc:creator><pubDate>Sun, 01 Jul 2007 18:32:38 -0000</pubDate><guid>https://sourceforge.netc45d5f39afdef774ab576acc12db38f3b12bd387</guid></item><item><title> Cooperative Visitor</title><link>https://sourceforge.net/p/loki-lib/feature-requests/28/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://sourceforge.net/forum/forum.php?thread_id=1720363&amp;amp;forum_id=93010"&gt;https://sourceforge.net/forum/forum.php?thread_id=1720363&amp;amp;forum_id=93010&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Kuemmel</dc:creator><pubDate>Sun, 01 Jul 2007 18:31:06 -0000</pubDate><guid>https://sourceforge.net1b9708cce7d468a422ea3af3088bc65a3cd1530f</guid></item><item><title>Change to ScopeGuard - allow array deletion</title><link>https://sourceforge.net/p/loki-lib/feature-requests/27/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://sourceforge.net/forum/forum.php?thread_id=1723718&amp;amp;forum_id=93008"&gt;https://sourceforge.net/forum/forum.php?thread_id=1723718&amp;amp;forum_id=93008&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Kuemmel</dc:creator><pubDate>Sun, 01 Jul 2007 18:18:37 -0000</pubDate><guid>https://sourceforge.nete1edc51df10cac4b10f1a152f9eef2ed6f5a0312</guid></item></channel></rss>