// series_rep.hxx: this file is part of the Vaucanson project.
//
// Vaucanson, a generic library for finite state machines.
//
// Copyright (C) 2008 The Vaucanson Group.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// The complete GNU General Public Licence Notice can be found as the
// `COPYING' file in the root directory.
//
// The Vaucanson Group consists of people listed in the `AUTHORS' file.
//
#ifndef VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX
# define VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX

# include <vaucanson/algebra/implementation/series/series_rep.hh>

namespace vcsn
{
  namespace algebra
  {
    template <typename S, typename M>
    bool
    operator==(boost::shared_ptr<SeriesRep<S, M> > lhs,
	       boost::shared_ptr<SeriesRep<S, M> > rhs)
    {
      // Type helpers.
      typedef SeriesRepBase<SeriesRep, S, M>		series_rep_base_t;
      typedef boost::shared_ptr<series_rep_base_t>	p_t;

      return (static_cast<p_t>(lhs) == static_cast<p_t>(rhs));
    }

  } // ! algebra

} // ! vcsn

#endif // !VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX
