Skip to content

Multiline templates not supported in sketch #43

Closed
@ffissore

Description

@ffissore

From @xEtherealx on November 2, 2015 19:56

The following sketch fails to compile:

#include "Arduino.h"
template <typename T> T test (T a) { return a;}
void setup () { }
void loop () { }

With error: 'T' does not name a type

This is with 1.6.5 on a mac

Copied from original issue: arduino/Arduino#4067

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions