Vaucanson  1.4.1
series_rep.hxx
1 // series_rep.hxx: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2008 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX
18 # define VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX
19 
20 # include <vaucanson/algebra/implementation/series/series_rep.hh>
21 
22 namespace vcsn
23 {
24  namespace algebra
25  {
26  template <typename S, typename M>
27  bool
28  operator==(boost::shared_ptr<SeriesRep<S, M> > lhs,
29  boost::shared_ptr<SeriesRep<S, M> > rhs)
30  {
31  // Type helpers.
32  typedef SeriesRepBase<SeriesRep, S, M> series_rep_base_t;
33  typedef boost::shared_ptr<series_rep_base_t> p_t;
34 
35  return (static_cast<p_t>(lhs) == static_cast<p_t>(rhs));
36  }
37 
38  } // ! algebra
39 
40 } // ! vcsn
41 
42 #endif // !VCSN_ALGEBRA_IMPLEMENTATION_SERIES_SERIES_REP_HXX