Add method to class definition
Merge pull request #1 from asarium/niffiwan/mantis3041

Fix compilation