View Single Post
  #2 (permalink)  
Old January 28th, 2006, 08:12 PM
klep klep is offline
Authorized User
 
Join Date: Oct 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks like your compiler is having issues with the fact that getEmployee() throws an exception on the last line and doesn't return a value. Since the exception is thrown, no return value should be necessary.

To get it to compile, you can add this as the last line of that method:

return mEmployees[0];

Note that that line will never actually be executed.

I'm curious to know what compiler/verison you're using...

----
Scott J. Kleper
Author, "Professional C++"
(Wrox, 2005)
Reply With Quote