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

Compile with<T> #4

Open
xyzeugene opened this issue Mar 24, 2018 · 1 comment
Open

Compile with<T> #4

xyzeugene opened this issue Mar 24, 2018 · 1 comment

Comments

@xyzeugene
Copy link

What is the VirtualTreeView version / branch?

Main

What is the Lazarus and Freepascal version?

Lazarus 1.8

Does the bug occurs also in Delphi?

No

Lazarus will not compile VirtualTrees.pas with -

function GetNodeData<T>(pNode: PVirtualNode): T; overload; inline;
function GetNodeDataAt<T:class>(pXCoord: Integer; pYCoord: Integer): T;
function GetFirstSelectedNodeData<T>(): T;  

-I don't know what the does so my fix probable breaks some sort of functionality

FIx: Delete Code and Reference to compile

@blikblum
Copy link
Owner

This is due to a limitation of fpc. As soon as fpc supports it will work fine

Until there use lazarus-v4 or lazarus-v5 branches

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