[app_context] Resolve build issue with gcc5
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 4 Feb 2021 05:26:10 +0000 (14:26 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 4 Feb 2021 06:43:38 +0000 (15:43 +0900)
commit14595c68aa48a97e18a995f8aa99cf778fac731d
treedee779d46c0d2e82824f9b47fa33398952924f4c
parented125489eaec3d00bf45f9dd26a33afff962313c
[app_context] Resolve build issue with gcc5

This solves the build issue for gcc5 when using std::call_once
Original code calls bind with copy of the argument to the function
and fails are reference is expected with gcc5

This patch adds a std::ref explicitly to make this work with gcc5

**Self evaluation:**
1. Build test: [x]Passed [ ]Failed [ ]Skipped
2. Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/app_context.cpp