Changeset 549b62 for src


Ignore:
Timestamp:
Dec 13, 2011, 9:46:12 AM (14 years ago)
Author:
Frederik Heber <heber@…>
Children:
8fe1e2
Parents:
e2e035e
git-author:
Frederik Heber <heber@…> (12/01/11 13:47:24)
git-committer:
Frederik Heber <heber@…> (12/13/11 09:46:12)
Message:

FIX: operator<<(.., range<>) required to mark first "[" as std::string.

  • and <string> was probably missing, too.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/Range.hpp

    re2e035e r549b62  
    1515
    1616#include <iosfwd>
     17#include <string>
    1718
    1819template <class T>
     
    7374std::ostream &operator<< (std::ostream &ost, const range<T>& y)
    7475{
    75   ost << "[" << y.first << ";" << y.last << "]";
     76  ost << std::string("[") << y.first << std::string(";") << y.last << std::string("]");
    7677  return ost;
    7778}
Note: See TracChangeset for help on using the changeset viewer.