@@ -70,17 +70,17 @@ namespace glm
70
70
char_type firstline;
71
71
order_type order;
72
72
73
- GLM_FUNC_DECL explicit format_punct (size_t a = 0 );
74
- GLM_FUNC_DECL explicit format_punct (format_punct const &);
73
+ GLM_FUNC_DISCARD_DECL explicit format_punct (size_t a = 0 );
74
+ GLM_FUNC_DISCARD_DECL explicit format_punct (format_punct const &);
75
75
};
76
76
77
77
template <typename CTy, typename CTr = std::char_traits<CTy> >
78
78
class basic_state_saver {
79
79
80
80
public:
81
81
82
- GLM_FUNC_DECL explicit basic_state_saver (std::basic_ios<CTy,CTr>&);
83
- GLM_FUNC_DECL ~basic_state_saver ();
82
+ GLM_FUNC_DISCARD_DECL explicit basic_state_saver (std::basic_ios<CTy,CTr>&);
83
+ GLM_FUNC_DISCARD_DECL ~basic_state_saver ();
84
84
85
85
private:
86
86
@@ -108,8 +108,8 @@ namespace glm
108
108
{
109
109
public:
110
110
111
- GLM_FUNC_DECL explicit basic_format_saver (std::basic_ios<CTy,CTr>&);
112
- GLM_FUNC_DECL ~basic_format_saver ();
111
+ GLM_FUNC_DISCARD_DECL explicit basic_format_saver (std::basic_ios<CTy,CTr>&);
112
+ GLM_FUNC_DISCARD_DECL ~basic_format_saver ();
113
113
114
114
private:
115
115
@@ -125,36 +125,36 @@ namespace glm
125
125
{
126
126
unsigned value;
127
127
128
- GLM_FUNC_DECL explicit precision (unsigned = 3 );
128
+ GLM_FUNC_DISCARD_DECL explicit precision (unsigned = 3 );
129
129
};
130
130
131
131
struct width
132
132
{
133
133
unsigned value;
134
134
135
- GLM_FUNC_DECL explicit width (unsigned = 8 );
135
+ GLM_FUNC_DISCARD_DECL explicit width (unsigned = 8 );
136
136
};
137
137
138
138
template <typename CTy>
139
139
struct delimeter
140
140
{
141
141
CTy value[3 ];
142
142
143
- GLM_FUNC_DECL explicit delimeter (CTy /* left */ = " [" , CTy /* right */ = " ]" , CTy /* separator */ = ' ,' );
143
+ GLM_FUNC_DISCARD_DECL explicit delimeter (CTy /* left */ = " [" , CTy /* right */ = " ]" , CTy /* separator */ = ' ,' );
144
144
};
145
145
146
146
template <typename CTy>
147
147
struct filler
148
148
{
149
149
CTy value[4 ];
150
- GLM_FUNC_DECL explicit filler (CTy /* fill */ = ' ' , CTy /* space */ = ' ' , CTy /* newline */ = ' \n ' , CTy /* firstline */ = ' \n ' );
150
+ GLM_FUNC_DISCARD_DECL explicit filler (CTy /* fill */ = ' ' , CTy /* space */ = ' ' , CTy /* newline */ = ' \n ' , CTy /* firstline */ = ' \n ' );
151
151
};
152
152
153
153
struct order
154
154
{
155
155
order_type value;
156
156
157
- GLM_FUNC_DECL explicit order (order_type = column_major);
157
+ GLM_FUNC_DISCARD_DECL explicit order (order_type = column_major);
158
158
};
159
159
160
160
// functions, inlined (inline)
@@ -184,36 +184,36 @@ namespace glm
184
184
}// namespace io
185
185
186
186
template <typename CTy, typename CTr, typename T, qualifier Q>
187
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, qua<T, Q> const &);
187
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, qua<T, Q> const &);
188
188
template <typename CTy, typename CTr, typename T, qualifier Q>
189
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<1 , T, Q> const &);
189
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<1 , T, Q> const &);
190
190
template <typename CTy, typename CTr, typename T, qualifier Q>
191
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<2 , T, Q> const &);
191
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<2 , T, Q> const &);
192
192
template <typename CTy, typename CTr, typename T, qualifier Q>
193
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<3 , T, Q> const &);
193
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<3 , T, Q> const &);
194
194
template <typename CTy, typename CTr, typename T, qualifier Q>
195
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<4 , T, Q> const &);
195
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, vec<4 , T, Q> const &);
196
196
template <typename CTy, typename CTr, typename T, qualifier Q>
197
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 2 , T, Q> const &);
197
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 2 , T, Q> const &);
198
198
template <typename CTy, typename CTr, typename T, qualifier Q>
199
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 3 , T, Q> const &);
199
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 3 , T, Q> const &);
200
200
template <typename CTy, typename CTr, typename T, qualifier Q>
201
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 4 , T, Q> const &);
201
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<2 , 4 , T, Q> const &);
202
202
template <typename CTy, typename CTr, typename T, qualifier Q>
203
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 2 , T, Q> const &);
203
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 2 , T, Q> const &);
204
204
template <typename CTy, typename CTr, typename T, qualifier Q>
205
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 3 , T, Q> const &);
205
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 3 , T, Q> const &);
206
206
template <typename CTy, typename CTr, typename T, qualifier Q>
207
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 4 , T, Q> const &);
207
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<3 , 4 , T, Q> const &);
208
208
template <typename CTy, typename CTr, typename T, qualifier Q>
209
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 2 , T, Q> const &);
209
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 2 , T, Q> const &);
210
210
template <typename CTy, typename CTr, typename T, qualifier Q>
211
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 3 , T, Q> const &);
211
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 3 , T, Q> const &);
212
212
template <typename CTy, typename CTr, typename T, qualifier Q>
213
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 4 , T, Q> const &);
213
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator <<(std::basic_ostream<CTy,CTr>&, mat<4 , 4 , T, Q> const &);
214
214
215
- template <typename CTy, typename CTr, typename T, qualifier Q>
216
- GLM_FUNC_DECL std::basic_ostream<CTy,CTr> & operator <<(std::basic_ostream<CTy,CTr> &,
215
+ template <typename CTy, typename CTr, typename T, qualifier Q>
216
+ GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr> & operator <<(std::basic_ostream<CTy,CTr> &,
217
217
std::pair<mat<4 , 4 , T, Q> const , mat<4 , 4 , T, Q> const > const &);
218
218
219
219
// / @}
0 commit comments