2

Using boost.org within a Cocoa project is not really complicated. I'm using opaque pointers as described here: Can I separate C++ main function and classes from Objective-C and/or C routines at compile and link?

So I have written a few Objective-C wrappers around the boost libraries I'm using (Graph, Spirit,...) to have a consistent style in my programs (and to avoid contamining all my project so that it eventually becomes fully Objective-C++)

Before going on I would like to know if such wrappers already exist (as an opensource project) ?

Community
  • 1
  • 1
alecail
  • 3,993
  • 4
  • 33
  • 52
  • 4
    What's the point? Why not just use Objective-C++? –  Oct 26 '12 at 19:39
  • Objective-C++ was specifically created to address the issue of interoping legacy C++ code with Apple's Cocoa. (Which is how they ported Photoshop, and other Adobe softwares to Apple). So Boost + Objective-C will require Objective-C++ – Aniket Inge Oct 26 '12 at 19:54
  • Although if you're doing the wrappers manually each time, you can have the machine generate it for you. – Aniket Inge Oct 26 '12 at 20:00

1 Answers1

1

there are no ready-made wrappers AFAIK... maybe that helps:

boostoniphone: https://github.com/root42/boostoniphone-with-objc-nil-fix

Daij-Djan
  • 49,552
  • 17
  • 113
  • 135