[sigc] Error compiling tests/test_lambda.cc from 2.0.3 on Tru64 UNIX 5.1



I received the following error while building libsigc++-2.0.3 on Tru64
UNIX 5.1 with the Compaq C++ compiler:
  cxx  -I. -I. -I.. -I.. -I..    -O2 -readonly_strings -timplicit_local -D__USE_STD_IOSTREAM -c -o test_lambda.o `test -f 'test_lambda.cc' || echo './'`test_lambda.cc
c  xx: Error: test_lambda.cc, line 83: a reference of type "char *&" (not
            const-qualified) cannot be initialized with a value of type
            "char [2]"
    (sigc::ref(std::cout) << sigc::constant(1) << sigc::ref("\n"))();
  ----------------------------------------------------------^
  cxx: Error: test_lambda.cc, line 84: a reference of type "char *&" (not
            const-qualified) cannot be initialized with a value of type
            "char [2]"
    (sigc::var(std::cout) << 1 << sigc::ref("\n"))();
  ------------------------------------------^
  cxx: Error: test_lambda.cc, line 93: a reference of type "char *&" (not
            const-qualified) cannot be initialized with a value of type
            "char [2]"
      sl1 = (sigc::var(std::cout) << sigc::ref(guest_book) << sigc::ref("\n"));
  ----------------------------------------------------------------------^
  cxx: Info: 3 errors detected in the compilation of "test_lambda.cc".

Any ideas?

-- 
albert chin (china thewrittenword com)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]