From d1bdd08f95ebb6926f85a7735cbffcac15031922 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 31 Dec 2021 12:40:11 +0000 Subject: Add operator-> to glRef for pointer types --- lib/glRef.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/glRef.hpp') diff --git a/lib/glRef.hpp b/lib/glRef.hpp index b33980d..3377390 100644 --- a/lib/glRef.hpp +++ b/lib/glRef.hpp @@ -44,6 +44,12 @@ public: return id; } + auto + operator->() const + { + return id; + } + operator IdType() const { return id; -- cgit v1.2.3