TulipCharts / tulipindicators

Technical Analysis Indicator Function Library in C
https://tulipindicators.org/
GNU Lesser General Public License v3.0
850 stars 158 forks source link

Improve compatibility with C++ #88

Closed yageek closed 5 years ago

yageek commented 5 years ago

Using the "amalgamate" inside a c++ project triggers the following warning for every ti_indicator_info declared in the file:

 warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]

Declaring the string as const char* instead of char* fixes the warnings.

yageek commented 5 years ago

Is closed this PR to make a new one on the 0.9 branch