Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 09 Dec 1999
Online Last Active Today, 11:32 AM

Posts I've Made

In Topic: Returning a true in a function that has a bool return type

09 March 2015 - 02:32 AM

Depending on your environment another possibility is that you have a situation where the source code doesn't actually match the object code you're debugging. In that case a full rebuild may eliminate some weirdness. 

In Topic: I am beginning to hate the IT and gaming industry.

20 February 2015 - 01:35 AM

A lot of the hidden requirements aren't really requirements but feelers to see if you only have classroom knowledge of a technology or actual work experience. For example in machine learning, even if a work place doesn't use R and won't be expecting you to code in R, seeing a candidate who's never even looked at R code can be a red flag - even more so if they also have no proficiency with Python, SAS or Matlab. Basically there's too much sample code and literature out there using these languages that if you don't have minimal proficiency then it sounds like you've never had to do research for real world problem solving rather than just solving book problems. Or worse, you have had to do that kind of research but have decided to ignore 80% of the literature.


On the other side of the competency spectrum, there's also the situation where it really is a requirement but HR or management decided to draw up the job listing without consulting any of the technical staff. In this case you probably don't want to be working at that place even if you could get the job.

In Topic: Operator Overloading C++

13 February 2015 - 04:23 PM

That won't work. Member overload of binary operators will always have the class type on the left hand side. If you want to have a binary operator with the class type on the right hand side you need to make it a non-member operator overload. (Basically what you have except without the MyObject:: bits.)

In Topic: Operator Overloading C++

09 February 2015 - 02:33 PM

It's normal. A compiler's optimizer may get rid of it if it supports the named returned value optimization (NRVO), so you may find that on a different compiler or on the same one with different optimization settings you won't have both destructor calls. Of course, whatever code you're using to instrument the destructor may be causing the compiler to decide it can't get rid of the extra temporary because the compiler thinks that you want the side effects. 

In Topic: Calling virtual abstract class function

09 February 2015 - 01:22 PM

It depends when friendFunction() is called. If friendFunction() is called inside the base class's constructor or destructor it will try to call the base class version.