types.cc (9500:9c3e3d1c7a87) types.cc (11990:5fad911cc326)
1/*
2 * Copyright (c) 2013 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Nilay Vaish
29 */
30
31#include "base/types.hh"
32
1/*
2 * Copyright (c) 2013 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Nilay Vaish
29 */
30
31#include "base/types.hh"
32
33#ifndef SWIG // keep the operators away from SWIG
34
35std::ostream&
36operator<<(std::ostream &out, const Cycles & cycles)
37{
38 out << cycles.c;
39 return out;
40}
41
33std::ostream&
34operator<<(std::ostream &out, const Cycles & cycles)
35{
36 out << cycles.c;
37 return out;
38}
39
42#endif // SWIG not touching operators
43