
https://svn.lrde.epita.fr/svn/oln/trunk/static Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr> Have tests/exact.cc be (actually) part of Static's test-suite. * stc/exact.hh: Aesthetic change. Fix copyright headers. * tests/exact.cc: Likewise. Fix an inclusion of header. * tests/Makefile.am (check_PROGRAMS): Add exact. (exact_SOURCES): New. * tests/any.cc: Aesthetic change. stc/exact.hh | 6 +++--- tests/Makefile.am | 2 ++ tests/any.cc | 2 +- tests/exact.cc | 5 ++--- 4 files changed, 8 insertions(+), 7 deletions(-) Index: tests/exact.cc --- tests/exact.cc (revision 486) +++ tests/exact.cc (working copy) @@ -1,5 +1,4 @@ -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 EPITA Research and -// Development Laboratory. +// Copyright (C) 2006 EPITA Research and Development Laboratory. // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -27,7 +26,7 @@ // Public License. #include <iostream> -#include <exact.hh> // FIXME: was stc/exact.hh +#include <stc/exact.hh> template <typename E> struct abstraction : public stc::any<E> Index: tests/Makefile.am --- tests/Makefile.am (revision 486) +++ tests/Makefile.am (working copy) @@ -10,10 +10,12 @@ check_PROGRAMS = \ any \ entry \ + exact \ vtypes any_SOURCES = any.cc entry_SOURCES = entry.cc +exact_SOURCES = exact.cc vtypes_SOURCES = vtypes.cc TESTS = $(check_PROGRAMS) Index: tests/any.cc --- tests/any.cc (revision 486) +++ tests/any.cc (working copy) @@ -28,8 +28,8 @@ /// Test stc::any. #include <stc/any.hh> -#include <mlc/cmp.hh> #include <mlc/assert.hh> +#include <mlc/cmp.hh> #include <mlc/logic.hh> #include <mlc/is_a.hh> Index: stc/exact.hh --- stc/exact.hh (revision 486) +++ stc/exact.hh (working copy) @@ -1,5 +1,4 @@ -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 EPITA Research and -// Development Laboratory. +// Copyright (C) 2006 EPITA Research and Development Laboratory. // // This file is part of the Olena Library. This library is free // software; you can redistribute it and/or modify it under the terms @@ -39,7 +38,8 @@ # define stc_internal_is_any(T) \ -mlc::bexpr_< sizeof(internal::any_select(internal::makePtr< T >())) == sizeof(internal::yes_) > + mlc::bexpr_< sizeof(internal::any_select(internal::makePtr< T >())) == \ + sizeof(internal::yes_) >