Преглед на файлове

Rename GlobalAccessor::get to GlobalAccessor::read

This makes the interface a bit more like Reference's interface.
Ole преди 9 години
родител
ревизия
99e602b7a8
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      lib/luwra/state.hpp

+ 3 - 3
lib/luwra/state.hpp

@@ -46,16 +46,16 @@ struct GlobalAccessor {
 	 * Retrieve the associated value.
 	 */
 	template <typename V> inline
-	V get() {
+	V read() {
 		return getGlobal<V>(state, key);
 	}
 
 	/**
-	 * Shortcut for `get()`
+	 * Shortcut for `read()`
 	 */
 	template <typename V> inline
 	operator V() {
-		return get<V>();
+		return read<V>();
 	}
 
 	/**