Opened 12 years ago

Closed 12 years ago

#120 closed defect (wontfix)

Error in generated code for Fundamentals::TuplesImplementation::singletonTuple

Reported by: magne Owned by: Anya Helene Bagge
Priority: high Milestone: v0.3
Component: magnolia-eclipse Version:
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Anya Helene Bagge)

/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)

comment:1 by magne, 12 years ago

Milestone: m12.09m12.08
Priority: mediumhigh
Type: enhancementdefect

comment:2 by Anya Helene Bagge, 12 years ago

Milestone: m12.08v0.3
Status: newassigned

comment:3 by Anya Helene Bagge, 12 years ago

Description: modified (diff)

comment:4 by Anya Helene Bagge, 12 years ago

Resolution: wontfix
Status: assignedclosed

This is due to C++ operators << and >> missing from the tuple type. We need a system for this in magnolia.

Note: See TracTickets for help on using tickets.