x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Including exprtk requires compiler setting /GR

ExprTk is a lexer, parser and evaluator for equations. I've included it in my project and get two compiler errors.

First one is regarding the macro verify (used in UE4 and exprtk), which I could fix by renaming this macro in exprtk.

The second one is the problem: C4541 in ue_4.15\engine\source\runtime\coreuobject\public\Templates\Casts.h, line 405:

  • 'dynamic_cast' used on polymorphic type 'exprtk::lexer::token_scanner' with /GR-; unpredictable behavior may result

  • 'dynamic_cast' used on polymorphic type 'exprtk::details::expression_node' with /GR-; unpredictable behavior may result

Is it a problem activating /GR for Unreal Engine? If no, how can I activate it within an Unreal project?

Or even better, can I avoid that Casts.h is used with exprtk?

Product Version: UE 4.15
Tags:
more ▼

asked Apr 09 '17 at 10:49 PM in C++ Programming

avatar image

Roi Danton
72 10 16 16

avatar image rytill Jan 30 '18 at 02:21 PM

Did you ever find the solution to this problem? My team is having the same issue...

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Unfortunately not. I skipped using exprtk with UE4 atm. In my case I had only a dozen equations so it was ok to hardcode each formula into an own class and doing some string manipulation for certain conditions myself. It is ugly but still ok if you only have a handful of possible equations and conditions.

more ▼

answered Feb 01 '18 at 07:31 AM

avatar image

Roi Danton
72 10 16 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question