Looks like you should take out the const. I don't recall ever overloading << with the custom class as a const paramiter. I could be wrong but you should try it.