The noOptions API change makes me nervous. Especially the part about returning a reference to a static local:
203 +CompOption::Vector & 204 +noOptions () 205 +{ 206 + static CompOption::Vector v (0); 207 + return v; 208 +}
Why not just change the global: CompOption::Vector noOptions (0); to: const CompOption::Vector noOptions (0); ??
« Back to merge proposal
The noOptions API change makes me nervous. Especially the part about returning a reference to a static local:
203 +CompOption::Vector &
204 +noOptions ()
205 +{
206 + static CompOption::Vector v (0);
207 + return v;
208 +}
Why not just change the global: :Vector noOptions (0);
CompOption:
to:
const CompOption::Vector noOptions (0);
??