Skip to content

Commit 39c2628

Browse files
committed
Add wrapper namespace to workaround Async Webserver Class name collision
Closes ivanseidel#40, superseeds ivanseidel#41
1 parent 90d2967 commit 39c2628

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

LList.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
LinkedList.h - V1.1 - Generic LinkedList implementation
3+
Works better with FIFO, because LIFO will need to
4+
search the entire List to find the last one;
5+
6+
For instructions, go to https://github.com/ivanseidel/LinkedList
7+
8+
Created by Ivan Seidel Gomes, March, 2013.
9+
Released into the public domain.
10+
*/
11+
12+
/*
13+
This is a namespace wrapper to avoid collision with ESP Async WebServer's LinkedList class
14+
include it instead of <LinkedList.h> and use Class types - LList, LNode
15+
*/
16+
17+
namespace LL{
18+
#include <LinkedList.h>
19+
}
20+
21+
template<typename T> using LNode = LL::ListNode<T>;
22+
template<typename T> using LList = LL::LinkedList<T>;

0 commit comments

Comments
 (0)