The code below does not work with -O3 with gcc 4.5 or later.311 (12/15/2012 8:17:09 PM) Hi all,
The code below worked before gcc 4.5. It only works with gcc 4.5 without optimization. Could some one please explain what is wrong, and what optimzation step in gcc fails?
Regards,
Sudhir
// bit... sudhir.kadkade(1)
Sorting within a template828 (12/15/2012 10:05:45 AM)
Hello,
I defined a template class that acts as a container for some type objects.
Since theose objects are heavy, I need to reference them using pointers.
Assume that each object has a compare functi... gbe32241(75)
Erase Last Character of basic::string Variable647 (12/11/2012 12:11:35 AM) How do I remove the last character of a basic::string? Specifically,
I'm using fgets to read lines from a text file, and each ends with the
characters '\10' and '\0'. When I assign the c-string variabl... mrc2323(170)
Deadline extension: C++ Now 2013, Call for Submissions016 (12/15/2012 9:56:24 PM)
Please see below for the extended deadline.
----------------------------------------------------------------------------
C++ NOW CONFERENCE 2013 - Aspen CO, USA, May 13-17, 2013, www.cppnow.org
------... hartmut.kaiser(15)
Getting rid of pointer to function cast warning837 (12/10/2012 2:53:41 PM) Is it possible to get rid of the warning below generated at compile time
without resorting to any compiler directive trickery? (ie. pragmas and
the likes)
Both g++ and clang++ report the following warnin... miguel.a.guedes1(18)
std::map<> problem318 (12/14/2012 11:10:55 PM) First:
$ g++ --version
g++ (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)
I'm using the following declarations:
struct point
{
double alpha, beta;
double Force;
point( double a, double b, double f )... john.chludzinski(61)
Available C++ Libraries FAQ #64015 (12/14/2012 11:23:04 PM) Available C++ Libraries FAQ
URL: http://www.trumphurst.com/cpplibs/
This is a searchable list of libraries and utilities (both free
and commercial) available to C++ programmers.
If you know of a libr... nikki(56)
Variadic templates std::tuple617 (12/12/2012 3:25:49 PM) Hi!
I have read the new C++ standard, C++11, will add to possibility to
use the variadic templates, so a templates can take variable numbers
of template parameters.
Using that the C++ library will add t... hablando001(7)
Data Race problem1622 (12/12/2012 1:16:59 PM) Hi
I have the following very simple multi-thread program:
#include
#include
int var = 0;
void incr()
{
std::mutex m;
m.lock();
var++;
m.unlock();
}
int main()
{
st... amrollahi.saeed(152)