Error in generated code for Fundamentals::TuplesImplementation::singletonTuple
/opt/local/bin/g++-mp-4.6 -std=c++0x -I. Fundamentals/TuplesImplementation/singletonTuple.cxx -o Fundamentals/TuplesImplementation/singletonTuple
Fundamentals/TuplesImplementation/singletonTuple.cxx: In function 'int Magnolia::MagicMain::main(int, char**)':
Fundamentals/TuplesImplementation/singletonTuple.cxx:301:22: error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
/opt/local/include/gcc46/c++/ostream:581:5: error: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = Fundamentals::TuplesImplementation::singletonTuple::singletonTuple_impl::T]'
Fundamentals/TuplesImplementation/singletonTuple.cxx: In function 'T Magnolia::MagicMain::readValue(const string&, const Magnolia::MagicMain::arg&) [with T = Fundamentals::TuplesImplementation::singletonTuple::singletonTuple_impl::T, std::string = std::basic_string<char>]':
Fundamentals/TuplesImplementation/singletonTuple.cxx:307:82: instantiated from here
Fundamentals/TuplesImplementation/singletonTuple.cxx:168:7: error: cannot bind 'std::basic_istream<char>' lvalue to 'std::basic_istream<char>&&'
/opt/local/include/gcc46/c++/istream:852:5: error: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = Fundamentals::TuplesImplementation::singletonTuple::singletonTuple_impl::T]'
Fundamentals/TuplesImplementation/singletonTuple.cxx:307:82: instantiated from here
Fundamentals/TuplesImplementation/singletonTuple.cxx:175:7: error: cannot bind 'std::basic_istream<char>' lvalue to 'std::basic_istream<char>&&'
/opt/local/include/gcc46/c++/istream:852:5: error: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = Fundamentals::TuplesImplementation::singletonTuple::singletonTuple_impl::T]'
make: *** [Fundamentals/TuplesImplementation/singletonTuple] Error 1
Change History
(4)
Milestone: |
m12.09 → m12.08
|
Priority: |
medium → high
|
Type: |
enhancement → defect
|
Milestone: |
m12.08 → v0.3
|
Status: |
new → assigned
|
Description: |
modified (diff)
|
Resolution: |
→ wontfix
|
Status: |
assigned → closed
|
This is due to C++ operators << and >> missing from the tuple type. We need a system for this in magnolia.