Sunday, September 29, 2013

Exeray fast containers

Newsgroup: comp.lang.c++

Subject: Exeray fast containers

From: exeraybigdata@...

Date: Sun, 29 Sep 2013 06:25:54 -0700 (PDT)



www.exeray.com has a free trial version of really fast C++ containers.

it is 4 times faster than existing C++ STL containers or Java containers.

A commercial license is also available now.







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?96971-Exeray-fast-containers&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Thursday, September 26, 2013

What flavor of does C++11 support

Newsgroup: comp.lang.c++

Subject: What flavor of does C++11 support

From: kurt krueckeberg <kkruecke@...>

Date: Tue, 24 Sep 2013 12:55:21 -0700 (PDT)



Are Perl Compatible Regular Expressions (PCRE) supported with the regex support added to C++11?







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?94150-What-flavor-of-does-C-11-support&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Sunday, September 22, 2013

Slartibartfast

Newsgroup: comp.lang.c++

Subject: Slartibartfast

From: Leigh Johnston <leigh@...>

Date: Sun, 22 Sep 2013 21:16:14 +0100



Slartibartfast.







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?93075-Slartibartfast&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Saturday, September 21, 2013

preprocessor check if empty

Newsgroup: comp.lang.c++

Subject: preprocessor check if empty

From: Philipp Kraus <philipp.kraus@...>

Date: Sat, 21 Sep 2013 23:54:06 +0200



Hello,



I hope my question is not off-topic.

My problem is defined as



#define DOSOME(x, รข??) docppcall(x % __VA_ARGS__)



but if __VA_ARGS__ is empty the replace should be docppcall(x), without

the % char. The % char should be only set, if exists an argument.

How can I create a working solution?



Thanks



Phil









via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?92668-preprocessor-check-if-empty&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Range of enumerations according to Stroustrup

Newsgroup: comp.lang.c++

Subject: Range of enumerations according to Stroustrup

From: Peter <pilarp@...>

Date: Sat, 14 Sep 2013 11:55:06 -0700 (PDT)



In Stroustrup's book the following statement can be found:



"The range of an enumeration holds all the enumeration's enumerator values rounded up to the nearest larger binary power minus 1. The range goes down to 0 if the smallest enumerator is non-negative and to the nearest lesser negative binary power if the smallest enumerator is negative".



The statement is followed by an example which contradicts the rule stated above:



enum e3 { min = -10, max = 1000000 }; // range -1048576:1048575



Why would the lower limit be -1048576? The smallest enumerator is -10 and the nearest negative binary power lesser than -10 is -16, not -1048576.













via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?83912-Range-of-enumerations-according-to-Stroustrup&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Wednesday, September 18, 2013

Assigning Default string Values

Newsgroup: comp.lang.c++

Subject: Assigning Default string Values

From: mrc2323@...

Date: Wed, 18 Sep 2013 08:07:55 -0700



During execution of my programs, I repeatedly initialize a number of

basic::strings to default lengths and values - usually blanks (but not

always). Currently, I create a single string variable of the largest

needed size and use it with .substr() to assign the default values.

Is there a better way? TIA







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?90824-Assigning-Default-string-Values&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

Questionable advice

Newsgroup: comp.lang.c++

Subject: Questionable advice

From: woodbrian77@...

Date: Sun, 8 Sep 2013 09:28:53 -0700 (PDT)





I watched some of the videos from the C++ conference at

Microsoft. Some of the advice given was to not use raw

pointers for ownership. I think that's going too far.



http://webEbenezer.net/misc/SendBuffer.hh

http://webEbenezer.net/misc/SendBuffer.cc



Someone may say that that doesn't scale if we need to

add another pointer to the class. I disagree. Classes

can have at least one pointer that isn't wrapped with

a smart pointer.



http://webEbenezer.net/misc/SendBufferCompressed.hh

http://webEbenezer.net/misc/SendBufferCompressed.cc



Finally, at the conference STL pointed out that using a

delegated constructor you can safely have multiple raw

pointers in a class:



http://webEbenezer.net/misc/Compressed.hh

http://webEbenezer.net/misc/Compressed.cc



Previously I was using unique_ptr more than now, but

have found in each of these cases that the code that

results without using it so much is a little smaller.

I've seen a lot of overuse of shared_ptr over the years

and now think it's also possible to use unique_ptr too

much.



The simplified advice came from Bjarne. I think for

student programs it doesn't make much difference, but

he may be focussing too much on beginners these days.





Brian

Ebenezer Enterprises - In G-d we trust.

http://webEbenezer.net







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?83905-Questionable-advice&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums