};
inline File::CreateMode operator|(File::CreateMode m, File::CreateMode n)
-{ return File::CreateMode((int)m|(int)n); }
+{ return File::CreateMode(static_cast<int>(m)|static_cast<int>(n)); }
inline File::CreateMode operator&(File::CreateMode m, File::CreateMode n)
-{ return File::CreateMode((int)m&(int)n); }
+{ return File::CreateMode(static_cast<int>(m)&static_cast<int>(n)); }
inline File::CreateMode operator~(File::CreateMode m)
-{ return File::CreateMode(~(int)m); }
+{ return File::CreateMode(~static_cast<int>(m)); }
typedef Filtered<File, Buffered> BufferedFile;
};
inline Mode operator|(Mode m, Mode n)
-{ return Mode((int)m|(int)n); }
+{ return Mode(static_cast<int>(m)|static_cast<int>(n)); }
inline Mode operator&(Mode m, Mode n)
-{ return Mode((int)m&(int)n); }
+{ return Mode(static_cast<int>(m)&static_cast<int>(n)); }
inline Mode operator~(Mode m)
-{ return Mode(~(int)m); }
+{ return Mode(~static_cast<int>(m)); }
} // namespace IO
} // namespace Msp
};
inline PollEvent operator|(PollEvent e, PollEvent f)
-{ return PollEvent((int)e|(int)f); }
+{ return PollEvent(static_cast<int>(e)|static_cast<int>(f)); }
inline PollEvent operator&(PollEvent e, PollEvent f)
-{ return PollEvent((int)e&(int)f); }
+{ return PollEvent(static_cast<int>(e)&static_cast<int>(f)); }
inline PollEvent operator~(PollEvent e)
-{ return PollEvent(~(int)e); }
+{ return PollEvent(~static_cast<int>(e)); }
class Poller
{