From 7224e8d36e6c635c9769af1a5f1d9f7c903ac9e0 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 28 Aug 2016 14:22:55 -0700 Subject: [PATCH] libobs/util: Add index operator to BPtr --- libobs/util/util.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libobs/util/util.hpp b/libobs/util/util.hpp index d7b3a6df0..4a8224d82 100644 --- a/libobs/util/util.hpp +++ b/libobs/util/util.hpp @@ -46,6 +46,8 @@ public: inline bool operator!() {return ptr == NULL;} inline bool operator==(T p) {return ptr == p;} inline bool operator!=(T p) {return ptr != p;} + + inline T operator[](size_t idx) const {return ptr[idx];} }; class ConfigFile {