Opened 11 years ago
Closed 9 years ago
#6009 closed Bugs (wontfix)
boost::statechart example compile error using xcode 4.2 with llvm-gcc 4.2
Reported by: | Owned by: | Andreas Huber | |
---|---|---|---|
Milestone: | To Be Determined | Component: | statechart |
Version: | Boost 1.47.0 | Severity: | Problem |
Keywords: | rebind | Cc: |
Description
The error: no class template named 'rebind' in 'struct Camera'
CompileC /Users/ufo/Library/Developer/Xcode/DerivedData/SingalAndState-edshecrhghdrdvfawtpttjnzkhhv/Build/Intermediates/SingalAndState.build/Debug-iphonesimulator/SingalAndState.build/Objects-normal/i386/USDetailViewController.o SingalAndState/USDetailViewController.mm normal i386 objective-c++ com.apple.compilers.llvmgcc42
cd /Users/ufo/Desktop/projects/ufosky/test2/SingalAndState setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/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 /Developer/Platforms/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 -DIPHONE_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
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/boost.framework/Headers/detail/allocator_utilities.hpp: In instantiation of 'boost::detail::allocator::rebinder<Camera>::result<boost::intrusive_ptr<boost::statechart::detail::leaf_state<Camera, NotShooting> > >': /Developer/Platforms/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<Camera, boost::intrusive_ptr<boost::statechart::detail::leaf_state<Camera, NotShooting> > >' /Developer/Platforms/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<false, boost::detail::allocator::partial_std_allocator_rebind_to<Camera, boost::intrusive_ptr<boost::statechart::detail::leaf_state<Camera, NotShooting> > >, boost::detail::allocator::compliant_allocator_rebind_to<Camera, boost::intrusive_ptr<boost::statechart::detail::leaf_state<Camera, NotShooting> > > >' /Developer/Platforms/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<Camera, boost::intrusive_ptr<boost::statechart::detail::leaf_state<Camera, NotShooting> > >' /Developer/Platforms/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<MostDerived, InitialState, Allocator, ExceptionTranslator>::send_event(const boost::statechart::event_base&) [with MostDerived = Camera, InitialState = NotShooting, Allocator = std::allocator<void>, ExceptionTranslator = boost::statechart::null_exception_translator]' /Developer/Platforms/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<MostDerived, InitialState, Allocator, ExceptionTranslator>::process_queued_events() [with MostDerived = Camera, InitialState = NotShooting, Allocator = std::allocator<void>, ExceptionTranslator = boost::statechart::null_exception_translator]' /Developer/Platforms/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<MostDerived, InitialState, Allocator, ExceptionTranslator>::initiate() [with MostDerived = Camera, InitialState = NotShooting, Allocator = std::allocator<void>, ExceptionTranslator = boost::statechart::null_exception_translator]' /Users/ufo/Desktop/projects/ufosky/test2/SingalAndState/SingalAndState/USDetailViewController.mm:110: instantiated from here /Developer/Platforms/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'
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Looks like a compiler bug to me.
It works correctly when using xcode 4.2 with apple llvm compiler 3.0