Hi..
I'm using __cxxabiv1::__cxa_demangle() function to demangle the symbols
obtained by backtrace_symbols(). This works almost fine. However, can
somebody explain what does the symbol __gxx_personality_v0 mean?
Consider this example:
class A
{
public:
A() {}
};
class B
{
public:
B() {}
private
Bernd Strieder napísal(a):
> Probably due to inlining. You have all the code in one compilation unit.
> If a constructor only calls another constructor, only that call might
> be left after inlining. There are other optimization techniques with a
> great influence on the call stack, e.g. tail cal
> Try using gdb instead.
I do, I just need to know the backtrace at runtime.
___
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus
Paulo Matos wrote:
> Hi all,
>
> I've wanted to know if there was any performance difference between
> using:
> for(vector::const_iterator it = v.begin(); it != v.end(); ++it)
>
> and
>
> for(unsigned int k = 0; k < v.size(); ++k)
>
> and it seems there is with gcc 4.1.1, using -O3, the later is al
> I would like to install the recent g++ locally in my home directory
> as a non-privileged user for testing purposes. It such an installation
> possible, having another version of g++ running globally?
>
It is possible.
___
help-gplusplus mailing lis
> 5char** str;
> 6
> 7str[0] = new char[5];
> 8str[1] = new char[5];
> 9
I believe the result is "undefined behavior", so the program might do
anything it wants..
___
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/ma
h wrote:
> Thanks Mehturt.
>
> but, it works through g++ on Cygwin and GNU/Linux machine without MS-VC++
> 6.0 on win32 machine.
> i know i've attached code are has a problem.
>
Undefined behavior is undefined behavior, it might work, it might not,
it might format your harddrive..
Try to use a de
Salvatore Di Fazio napísal(a):
> Paul Pluzhnikov wrote:
>
> > I also want it to run on systems that don't have libstdc++
> > installed at all (this could be the case on a "production server",
> > which often doesn't have g++ installed).
>
> That's right ;)
I usually distribute libstdc++.so a
Hi,
is it possible to turn off -Walways-true warning for certain
comparison?
I have a template with parameter of integral type, which can be both
signed and unsigned and I'm testing the value for <0.. With -Wall
(which I'm using by default) I always get a warning this comparison is
always true when
Bernd Strieder wrote:
> The clean way means (partially) specializing your template, and remove
> the comparisions from the code for unsigned. If your template itself is
> too large, you could perhaps forward the member functions with those
> comparision to other template functions, which you could
Bernd Strieder wrote:
>
> I think I would prefer the warning in your case, if there are no other
> reasons for the template hackery, then it should not be done. If you
> have the same problem in more instances, then creating a custom traits
> class might be helpful, i.e. make general_version to a
11 matches
Mail list logo