Boost logo

Boost Users :

Subject: [Boost-users] [Objective-C++] Specializing boost::lexical_cast
From: Kelvin Chung (kelvSYC_at_[hidden])
Date: 2011-10-14 21:37:02


I'm trying to specialize boost::lexical_cast to convert Objective-C
objects into various standard C++ classes (for example, leveraging
NSNumber::-intValue to create lexical_cast<int>(NSNumber*)). However,
as Objective-C objects exist as pointers, I would imagine that they
would fail the requirements of needing well-defined streaming
operator<<() in order to use the stock boost::lexical_cast. Any words
of advice on how to do this in a way that will do as little damage as
possible?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net