Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGUIERROR std #1279

Closed
TannicArcher opened this issue Feb 2, 2023 · 2 comments
Closed

CGUIERROR std #1279

TannicArcher opened this issue Feb 2, 2023 · 2 comments

Comments

@TannicArcher
Copy link

image
How to fix it
` {
using namespace std;

	if (d_cplength < idx)
		CEGUI_THROW(out_of_range("Index was out of range for CEGUI::String object"));

	size_type	maxlen = d_cplength - idx;

	return encoded_size(&ptr()[idx], ceguimin(num, maxlen));
}`
@WeeKwok
Copy link

WeeKwok commented Feb 9, 2023

You need to include the header file where the declaration of std::min is located, but normally, cegui should already include the header file it needs, maybe you can try including CEGUI/CEGUI.h

@TannicArcher
Copy link
Author

Thanks i fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants