
Your workaround 1 is exactly what I was looking for. Thanks a lot! Workaround 2 doesn't help here --- it has already been used in Boost::TR1, but as I mentioned in my original email, Sun CC avoids reload the standard header <memory> (which is replaced by Boost::TR1's own memory.SUNWCCh), the TR1 extension can't be found in the sun-test.cpp. On Thu, Nov 13, 2008 at 6:16 AM, Simon Atanasyan <atanasyan@gmail.com>wrote:
There are two workarounds. Both of them are quite ugly but it's better than nothing:
1. You can use undocumented command line option '-Qoption ccfe -nosunwcch'. 2. You can create symlink <inc_name>.SUNWCCh points to <inc_name>. By default Sun C++ replace #include <memory> by #include <memory.SUNWCCh> and lookup memory.SUNWCCh using regular include file lookup rules.