Code

Super duper mega (fun!) commit: replaced encoding=utf-8 with fileencoding=utf-8 in...
[inkscape.git] / src / util / copy.h
1 /*
2  * Inkscape::Traits::Copy - traits class to determine types to use when copying
3  *
4  * Authors:
5  *   MenTaLguY <mental@rydia.net>
6  *
7  * Copyright (C) 2004 MenTaLguY
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_INKSCAPE_TRAITS_COPY_H
13 #define SEEN_INKSCAPE_TRAITS_COPY_H
15 namespace Inkscape {
17 namespace Traits {
19 template <typename T>
20 struct Copy {
21     typedef T Type;
22 };
24 template <typename T>
25 struct Copy<T const> {
26     typedef T Type;
27 };
29 template <typename T>
30 struct Copy<T &> {
31     typedef T &Type;
32 };
34 }
36 }
38 #endif
39 /*
40   Local Variables:
41   mode:c++
42   c-file-style:"stroustrup"
43   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44   indent-tabs-mode:nil
45   fill-column:99
46   End:
47 */
48 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :