Author Topic: C++ variadic templates  (Read 454 times)

Resistance

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
C++ variadic templates
« on: December 02, 2018, 09:33:23 pm »
Hi
Does anyone know how could stop EA parsing error about the following line in C++ code when reversing the code?
Code: [Select]
template <std::size_t... Is>
or
Code: [Select]
template <bool IS_CONSTRUCT, typename std::enable_if<!IS_CONSTRUCT>::type*, typename ... Args>
ObjectType* MyFunc<ObjectType, CONSTRUCT, BULK>::get (Args& ... args) noexcept

I want to add them as macro but I don't know how it can be done, because by adding ... it generates error that that "There was an error parsing on line 1. Unexpected symbol: . "
Now I don't have any idea to do anything and any suggestion will be appreciated.