Advertisement
Guest User

Operator inside namespace and class

a guest
Sep 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. //file.cpp:
  2. float ui::element::operator ""_h(float new_y)
  3. {
  4. }
  5.  
  6. //file.hpp:
  7. namespace ui {
  8.     class element
  9.     {
  10.         public:
  11.             float operator "" _h(float);
  12.     };
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement