Update optional.hpp

Fix Xcode 6 compile error.