Boost C++ Libraries: Ticket #6009: boost::statechart example compile error using xcode 4.2 with llvm-gcc 4.2 https://svn.boost.org/trac10/ticket/6009 <p> The error: no class template named 'rebind' in 'struct Camera' </p> <p> CompileC /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/Objects-normal/i386/USDetailViewController.o <a class="missing wiki">SingalAndState</a>/USDetailViewController.mm normal i386 objective-c++ com.apple.compilers.llvmgcc42 </p> <blockquote> <p> cd /Users/ufo/Desktop/projects/ufosky/test2/SingalAndState setenv LANG en_US.US-ASCII setenv PATH "<a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wmissing-prototypes -Wreturn-type -Wunused-variable -DDEBUG=1 -isysroot <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -fexceptions -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility-inlines-hidden -fobjc-abi-version=2 -fobjc-legacy-dispatch -D<span class="underline">IPHONE_OS_VERSION_MIN_REQUIRED=30200 -iquote /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/SingalAndState-generated-files.hmap -I/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/SingalAndState-own-target-headers.hmap -I/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/SingalAndState-all-target-headers.hmap -iquote /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/SingalAndState-project-headers.hmap -I/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Products/Debug-iphonesimulator/include -I/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/DerivedSources/i386 -I/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/DerivedSources -F/Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Products/Debug-iphonesimulator -include /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/PrecompiledHeaders/SingalAndState-Prefix-afgmbkmkehysgxbaffybujibddfp/SingalAndState-Prefix.pch -c /Users/ufo/Desktop/projects/ufosky/test2/SingalAndState/SingalAndState/USDetailViewController.mm -o /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/Objects-normal/i386/USDetailViewController.o </span></p> </blockquote> <p> <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/detail/allocator_utilities.hpp: In instantiation of 'boost::detail::allocator::rebinder&lt;Camera&gt;::result&lt;boost::intrusive_ptr&lt;boost::statechart::detail::leaf_state&lt;Camera, NotShooting&gt; &gt; &gt;': <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/detail/allocator_utilities.hpp:158: instantiated from 'boost::detail::allocator::compliant_allocator_rebind_to&lt;Camera, boost::intrusive_ptr&lt;boost::statechart::detail::leaf_state&lt;Camera, NotShooting&gt; &gt; &gt;' <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/mpl/eval_if.hpp:60: instantiated from 'boost::mpl::eval_if_c&lt;false, boost::detail::allocator::partial_std_allocator_rebind_to&lt;Camera, boost::intrusive_ptr&lt;boost::statechart::detail::leaf_state&lt;Camera, NotShooting&gt; &gt; &gt;, boost::detail::allocator::compliant_allocator_rebind_to&lt;Camera, boost::intrusive_ptr&lt;boost::statechart::detail::leaf_state&lt;Camera, NotShooting&gt; &gt; &gt; &gt;' <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/detail/allocator_utilities.hpp:170: instantiated from 'boost::detail::allocator::rebind_to&lt;Camera, boost::intrusive_ptr&lt;boost::statechart::detail::leaf_state&lt;Camera, NotShooting&gt; &gt; &gt;' <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/statechart/state_machine.hpp:878: instantiated from 'boost::statechart::detail::reaction_result boost::statechart::state_machine&lt;<a class="missing wiki">MostDerived</a>, <a class="missing wiki">InitialState</a>, Allocator, <a class="missing wiki">ExceptionTranslator</a>&gt;::send_event(const boost::statechart::event_base&amp;) [with <a class="missing wiki">MostDerived</a> = Camera, <a class="missing wiki">InitialState</a> = <a class="missing wiki">NotShooting</a>, Allocator = std::allocator&lt;void&gt;, <a class="missing wiki">ExceptionTranslator</a> = boost::statechart::null_exception_translator]' <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/statechart/state_machine.hpp:910: instantiated from 'void boost::statechart::state_machine&lt;<a class="missing wiki">MostDerived</a>, <a class="missing wiki">InitialState</a>, Allocator, <a class="missing wiki">ExceptionTranslator</a>&gt;::process_queued_events() [with <a class="missing wiki">MostDerived</a> = Camera, <a class="missing wiki">InitialState</a> = <a class="missing wiki">NotShooting</a>, Allocator = std::allocator&lt;void&gt;, <a class="missing wiki">ExceptionTranslator</a> = boost::statechart::null_exception_translator]' <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/statechart/state_machine.hpp:256: instantiated from 'void boost::statechart::state_machine&lt;<a class="missing wiki">MostDerived</a>, <a class="missing wiki">InitialState</a>, Allocator, <a class="missing wiki">ExceptionTranslator</a>&gt;::initiate() [with <a class="missing wiki">MostDerived</a> = Camera, <a class="missing wiki">InitialState</a> = <a class="missing wiki">NotShooting</a>, Allocator = std::allocator&lt;void&gt;, <a class="missing wiki">ExceptionTranslator</a> = boost::statechart::null_exception_translator]' /Users/ufo/Desktop/projects/ufosky/test2/SingalAndState/SingalAndState/USDetailViewController.mm:110: instantiated from here <a class="missing wiki">/Developer/Platforms</a>/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/detail/allocator_utilities.hpp:149: error: no class template named 'rebind' in 'struct Camera' </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6009 Trac 1.4.3 ufosky@… Tue, 11 Oct 2011 10:22:20 GMT <link>https://svn.boost.org/trac10/ticket/6009#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6009#comment:1</guid> <description> <p> It works correctly when using xcode 4.2 with apple llvm compiler 3.0 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andreas Huber</dc:creator> <pubDate>Sun, 09 Jun 2013 18:12:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6009#comment:2 https://svn.boost.org/trac10/ticket/6009#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Looks like a compiler bug to me. </p> Ticket